From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: Re: sizeof(long) different under windows x64 and linuxx64 Date: Wed, 23 Jan 2008 09:48:43 +0100 Message-ID: <200801230948.43437.Christoph.Egger@amd.com> References: <20080123004707.GB6741@implementation> <20080123010108.GC6741@implementation> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: James Harper , Daniel Stodden , Samuel Thibault List-Id: xen-devel@lists.xenproject.org On Wednesday 23 January 2008 02:38:37 James Harper wrote: > > James Harper, le Wed 23 Jan 2008 11:55:50 +1100, a =E9crit : > > > > > Any suggestions as to what the type should be called? > > > > > > > > Just the standard name: uintptr_t > > > > > > Can you qualify 'standard' in that context (eg Linux, gcc, POSIX, etc= ). > > > > C99 > > That'll do nicely :) > > > > I don't ever remember hearing of that field before. Is it a type > > > defined as 'an integer with the same width as a pointer'? > > > > =AB=A0The following type designates an unsigned integer type with the > > property that any valid pointer to void can be converted to this type, > > then converted back to pointer to void, and the result will compare equ= al > > to the original pointer: uintptr_t=A0=BB > > Perfect. Thanks. C99 introduced uintptr_t/intptr_t for portability: http://www.unix.org/version2/whatsnew/lp64_wp.html Christoph =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy