From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LffDD-0001J4-0N for mharc-grub-devel@gnu.org; Fri, 06 Mar 2009 13:55:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LffDB-0001I3-K0 for grub-devel@gnu.org; Fri, 06 Mar 2009 13:55:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LffDA-0001HN-TN for grub-devel@gnu.org; Fri, 06 Mar 2009 13:55:57 -0500 Received: from [199.232.76.173] (port=40933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LffDA-0001HD-Lc for grub-devel@gnu.org; Fri, 06 Mar 2009 13:55:56 -0500 Received: from aybabtu.com ([69.60.117.155]:33022) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LffDA-0008Eg-6r for grub-devel@gnu.org; Fri, 06 Mar 2009 13:55:56 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Lff5N-0002ID-4z for grub-devel@gnu.org; Fri, 06 Mar 2009 19:47:53 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1LffD7-0007T9-Hb for grub-devel@gnu.org; Fri, 06 Mar 2009 19:55:53 +0100 Date: Fri, 6 Mar 2009 19:55:53 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090306185553.GA28703@thorin> References: <49AE6756.10404@nic.fi> <1236182302.31907.11.camel@localhost> <20090304.130223.202852927.davem@davemloft.net> <200903050804.07474.ml@isaac.cedarswampstudios.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903050804.07474.ml@isaac.cedarswampstudios.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH 1/7]: Fix sparc64 setjmp implementation. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 18:55:57 -0000 On Thu, Mar 05, 2009 at 08:04:07AM -0500, Isaac Dupree wrote: > > We've been using "unsigned long" for storing virtual addresses in the > > Linux kernel for 10+ years and it works just fine. :-) > > and Linux kernel uses GCC compiler in precise ways > > I believe that ptrdiff_t is the proper standardized type for an integer the > size of a pointer. except... it's always signed :-) > > Can you just use pointer types and pointer arithmetic? > > also, standards aside, a common way to get such a type, is "configure" script > testing various possibilities like "unsigned long" and "unsigned long long" > and seeing which one is the right size for the target architecture. (not sure > if that works when cross-compiling though) I think we're already using longs this way in quite a few places. It's not such a big deal IMHO. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."