how to tell 64 vs 32 bit architecture ?
Kostik Belousov
kostikbel at gmail.com
Tue Sep 11 05:36:07 PDT 2007
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:
> > 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.
0xdeadbeefd00de123LL ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070911/b138e085/attachment.pgp
More information about the freebsd-current
mailing list