I found the reason why convert/misc/md5 didn't work on the 64-bit
architecture.
The failures came from the rot function -- it was ok for 32-bit ints, but
wrong for 64-bit.
This is what works ok:

rot=: 16bffffffff and sh or ] sh~ 32 -~ [ NB. (y << x) | (y >> (32 - x))

I saved it in https://github.com/georgiy-pruss/2-J/blob/master/md5.ijs

Probably it can return to the convert family. It can be useful when the jqt
library is not available.

Also T can be calculated during the initialization. It turned our they are
just sine values!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to