Open emeric0101 opened 7 years ago
In mx()
, I have used ($y >> 3 & 0x1fffffff)
to fix negative value. Does it not work?
Yes it works fine, but it is not released, so when I use composer, i get the older version of your code.
Oh, I released it now.
And you can also use xxtea-pecl to instead this pure php implementation.
Hi, i have a fix to suggest : In the function mx(), in my server, i had an issue with right byte shifting in $y >> 3 because it returned negative values. For fixting it : (from http://stackoverflow.com/questions/2642026/php-equivalent-javascript-shift-right-with-zero-fill-bitwise-operators )
then replace eveywhere you use x << y