[Jprogramming] Heads-up about CRC on 64-bit machines in the next release

Henry Rich henryhrich at gmail.com
Sun Jul 3 16:37:04 UTC 2016


The J CRC (128!:3) is a 32-bit calculation producing an integer, which 
may be positive or negative.

In 64-bit J this 32-bit value was filled with upper zeros to produce the 
result.  This makes trouble for programs that run in either 32- or 
64-bit mode, as CRCs with bit 31 set appear different numerically even 
though they hold the same 32 bits.

For the next release the 32-bit value is sign-extended rather than 
zero-extended to produce the 64-bit value.  I'm just saying.

Henry Rich


More information about the Programming mailing list