_popcnt64 ( a ) gives number of 1 's present  in binary representation of a. If number  of 1s is half of total bits, return true.
var ans = a . toString ( 2 ) . split ( ' ' ) . join ( ' ' ) . length == ( ULL_SIZE >> 1 ) ? 1 : 0 ; return ans ; }