I'm trying to convert my C ++ code to PHP, and I'm stuck, my source codes use unsigned integers (32 bits) and many bitwise operations like rotations, xor, shifting, I try my best to make it work, I reduce integers to 32 bits
$ i = $ i and 0xFFFFFFFF;
but still I have a lot of problems (in my opinion, this is due to multiplication / division).
Are there libraries for PHP that handle operations with 32-bit unsigned integers, any other ideas are also welcome :) Thanks :)
source
share