Re: Conditional compile if 64-bit cpu, in .xs ?
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Tue, 29 Aug 2006 09:23:56 +0000 (UTC)
[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
.
- References:
- Conditional compile if 64-bit cpu, in .xs ?
- From: Peter Billam
- Re: Conditional compile if 64-bit cpu, in .xs ?
- From: Ilya Zakharevich
- Re: Conditional compile if 64-bit cpu, in .xs ?
- From: Peter Billam
- Conditional compile if 64-bit cpu, in .xs ?
- Prev by Date: Re: Conditional compile if 64-bit cpu, in .xs ?
- Next by Date: please helpme: Net-SNMP-5.2.0 module
- Previous by thread: Re: Conditional compile if 64-bit cpu, in .xs ?
- Next by thread: Re: Conditional compile if 64-bit cpu, in .xs ?
- Index(es):
Relevant Pages
|