Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2007 15:35:56 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        Yan <rottled@gmail.com>, current@freebsd.org
Subject:   Re: how to tell 64 vs 32 bit architecture ?
Message-ID:  <20070911123556.GF53667@deviant.kiev.zoral.com.ua>
In-Reply-To: <20070911051653.A62022@xorpc.icir.org>
References:  <20070906111028.A83649@xorpc.icir.org> <20070906222647.GB2737@kobe.laptop> <20070907000950.A91211@xorpc.icir.org> <20070907115021.GA2718@kobe.laptop> <20070907050310.A94579@xorpc.icir.org> <54b90fdf0709070654h103316f3sa3d423f4ff75fee3@mail.gmail.com> <20070911051653.A62022@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--+GiWpZ/vZzfY9+ZQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
> >=20
> > #define MY_MAGIC ((sizeof(intptr_t)=3D=3D4) ? 0Xdeadbeef : 0xdeadbeefd0=
0de123)
>=20
> gcc 3.4 on a 32bit machine complains because the second constant
> is too large.
0xdeadbeefd00de123LL ?

--+GiWpZ/vZzfY9+ZQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFG5ousC3+MBN1Mb4gRAmJ8AJ99k+9eFQabNvLdOjB1bzwgznffqgCg4tAE
wPJVoflu5ydRTZrYxlS6c5A=
=6UYc
-----END PGP SIGNATURE-----

--+GiWpZ/vZzfY9+ZQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070911123556.GF53667>