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 <slrnef4u2h.mnv.peter@xxxxxxxxxxxxxxxxxxxxx>:
Greetings xs folk. Suppose I have a bug-fix in a .xs file looking like
v0 &= 0xffffffff;
which is only necessary on 64-bit architectures... For speed reasons
I'd like to not include that line on 32-bit machines. Is there some
convenient
#ifdef 64whatever
v0 &= 0xffffffff;
#endif
defined by the xs that I can use ?

Why? Just add -DMY_64bit_FIX_NEEDED in Makefile.PL after inspecting
%Config *for the conditions you need*, not some "random thing" being
64-bit...

Hope this helps,
Ilya
.



Relevant Pages