in 32bit machine, popcount don't work with a input string length up to 5...

...12 MB,

bitcount commant may return negtive integer with string length more than 256 MB