Don't ask to ask, just ask | |
PerlMonks |
Re^2: Pure perl Jenkins 32 bit Hashby huck (Prior) |
on Nov 18, 2017 at 02:56 UTC ( [id://1203717]=note: print w/replies, xml ) | Need Help?? |
Are you sure the 32-bit mix4 is correct? Guess not
Doing low-level unsigned arithmetic can be awkward in perl. Seems so, this needs more investigation and i dont have a C compiler for that 32bit machine Thanks for the heads up, I will keep looking deeper Added: Re: How to do 'unsigned shift right' in perl? Note that both "<<" and ">>" in Perl are implemented directly using "<<" and ">>" in C. If use integer (see Integer Arithmetic) is in force then signed C integers are used, else unsigned C integers are used. Added2: Wow Ive got the "fix", just like you said, but understanding why it works and "-hash hash3" still doesnt work on 32bit and how mixing IV,UV and possibly NV arithmetic between mix and hash3 is causing the difference hasnt quite gelled yet. I'll be back! Devel::Peek and perlguts will rescue me!
In Section
Seekers of Perl Wisdom
|
|