Set the pointer alignment (in bits) via a C macro generated by the Makefile.PL
authorNicholas Clark <nick@ccl4.org>
Sun, 1 May 2011 20:06:51 +0000 (21:06 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 1 May 2011 20:06:51 +0000 (21:06 +0100)
commit5f03b77e418d07ecc0a99453ba27df9be95ee32d
tree9d6e691e20b095b63b0ad5f4689c0568d0a3df0b
parentf404ed4821fb2d22f6c79a027536e12a4053d81b
Set the pointer alignment (in bits) via a C macro generated by the Makefile.PL

The previous approach of using sizeof(void *) is flat out wrong on a 64 bit
system. The right answer is 3. It gives 4. Which isn't a problem once the
pointer rotation code in check_new() isn't buggy, but isn't as efficient as
desired.
Makefile.PL
Size.xs