Thanks to wjchen from SSE4 improvements. (merged partially from
https://github.com/wjchen/ptsminer )