Re: Conditional compile if 64-bit cpu, in .xs ?



[A complimentary Cc of this posting was sent to
Peter Billam
<contact.html@xxxxxxxxxxxxxx>], who wrote in article <slrnef746r.nuf.peter@xxxxxxxxxxxxxxxxxxxxx>:
You mean in Makefile.PL have, if ($Config{use64bitint}) then
DEFINE => '-DMY_64bit_FIX_NEEDED',
and then put
#ifdef MY_64bit_FIX_NEEDED
v0 &= 0xffffffff;
#endif
in the .xs ?

Definitely not. You use some "random indication" of 64-bitness. Do
you know the EXACT SEMANTIC of 'use64bitint'?

You need to FIND EXACT CONDITIONS for when you NEED your "&=". E.g.,
is it intsize, longsize, ptrsize, longlongsize, or ivsize (or
something else) which should trigger this assignment?

Hope this helps,
Ilya
.



Relevant Pages


Quantcast