From owner-freebsd-current@FreeBSD.ORG Tue Sep 11 12:36:07 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96F4A16A417 for ; Tue, 11 Sep 2007 12:36:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 53A1813C45E for ; Tue, 11 Sep 2007 12:36:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IV4yD-000Bgr-CI for current@freebsd.org; Tue, 11 Sep 2007 15:36:05 +0300 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l8BCZuJ7092080; Tue, 11 Sep 2007 15:35:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l8BCZucV092079; Tue, 11 Sep 2007 15:35:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 11 Sep 2007 15:35:56 +0300 From: Kostik Belousov To: Luigi Rizzo Message-ID: <20070911123556.GF53667@deviant.kiev.zoral.com.ua> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+GiWpZ/vZzfY9+ZQ" Content-Disposition: inline In-Reply-To: <20070911051653.A62022@xorpc.icir.org> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: 5bcd58edb95cdacf596e852bfe0375ec X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1455 [September 11 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: Yan , current@freebsd.org Subject: Re: how to tell 64 vs 32 bit architecture ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 12:36:07 -0000 --+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--