Re: how to tell 64 vs 32 bit architecture ?
- From: Kostik Belousov <kostikbel@xxxxxxxxx>
- Date: Tue, 11 Sep 2007 15:35:56 +0300
On Tue, Sep 11, 2007 at 05:16:53AM -0700, Luigi Rizzo wrote:
On Fri, Sep 07, 2007 at 09:54:35AM -0400, Yan wrote:0xdeadbeefd00de123LL ?
How about this:
#define MY_MAGIC ((sizeof(intptr_t)==4) ? 0Xdeadbeef : 0xdeadbeefd00de123)
gcc 3.4 on a 32bit machine complains because the second constant
is too large.
Attachment:
pgpgxOBnwP9o5.pgp
Description: PGP signature
- Follow-Ups:
- Re: how to tell 64 vs 32 bit architecture ?
- From: Andrew Milton
- Re: how to tell 64 vs 32 bit architecture ?
- References:
- how to tell 64 vs 32 bit architecture ?
- From: Luigi Rizzo
- Re: how to tell 64 vs 32 bit architecture ?
- From: Giorgos Keramidas
- Re: how to tell 64 vs 32 bit architecture ?
- From: Luigi Rizzo
- Re: how to tell 64 vs 32 bit architecture ?
- From: Giorgos Keramidas
- Re: how to tell 64 vs 32 bit architecture ?
- From: Luigi Rizzo
- Re: how to tell 64 vs 32 bit architecture ?
- From: Yan
- Re: how to tell 64 vs 32 bit architecture ?
- From: Luigi Rizzo
- how to tell 64 vs 32 bit architecture ?
- Prev by Date: Re: how to tell 64 vs 32 bit architecture ?
- Next by Date: Re: how to tell 64 vs 32 bit architecture ?
- Previous by thread: Re: how to tell 64 vs 32 bit architecture ?
- Next by thread: Re: how to tell 64 vs 32 bit architecture ?
- Index(es):