I've a strange behaviour with my sha library because it works on Windows but fails on Raspberry, digging in the code I've isolated the problem and seems that bit functions are giving different results, here is the test code:
Code: Select all
Function _ROL(x, y) Return(Rol(x, y)) EndFunction
Local v = 5140528219
DebugPrint(v, _ROL(v, 13), _ROL(v, 15), ROL(v, 10))
DebugPrompt("?")
Code: Select all
5140528219 3347801676 506304819 2565958857
Code: Select all
5140528219 4294967295 4294967295 4294967295
I'm getting old porting this library to hollywood