From owner-freebsd-current@FreeBSD.ORG Tue Sep 11 12:18:08 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 AF43116A418 for ; Tue, 11 Sep 2007 12:18:08 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFC013C467 for ; Tue, 11 Sep 2007 12:18:08 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l8BCGrgj062063; Tue, 11 Sep 2007 05:16:53 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l8BCGrWp062062; Tue, 11 Sep 2007 05:16:53 -0700 (PDT) (envelope-from rizzo) Date: Tue, 11 Sep 2007 05:16:53 -0700 From: Luigi Rizzo To: Yan Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <54b90fdf0709070654h103316f3sa3d423f4ff75fee3@mail.gmail.com>; from rottled@gmail.com on Fri, Sep 07, 2007 at 09:54:35AM -0400 Cc: 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:18:08 -0000 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. cheers luigi