I have issue with bits2int function. It gives different results on different platforms. Is this expected?