All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: James Harper <james.harper@bendigoit.com.au>,
	Daniel Stodden <dns@somacoma.net>,
	Samuel Thibault <samuel.thibault@eu.citrix.com>
Subject: Re: sizeof(long) different under windows x64 and linuxx64
Date: Wed, 23 Jan 2008 09:48:43 +0100	[thread overview]
Message-ID: <200801230948.43437.Christoph.Egger@amd.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D0131A8B5@trantor>

On Wednesday 23 January 2008 02:38:37 James Harper wrote:
> > James Harper, le Wed 23 Jan 2008 11:55:50 +1100, a écrit :
> > > > > 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'?
> >
> > « The 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 equal
> > to the original pointer: uintptr_t »
>
> Perfect. Thanks.

C99 introduced uintptr_t/intptr_t for portability:
http://www.unix.org/version2/whatsnew/lp64_wp.html

Christoph


-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

  parent reply	other threads:[~2008-01-23  8:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 23:01 sizeof(long) different under windows x64 and linux x64 James Harper
2008-01-22 23:26 ` Daniel Stodden
2008-01-22 23:34   ` sizeof(long) different under windows x64 and linuxx64 James Harper
2008-01-22 23:41     ` James Harper
2008-01-23  0:01     ` Daniel Stodden
2008-01-23  0:47     ` Samuel Thibault
2008-01-23  0:55       ` James Harper
2008-01-23  1:01         ` Samuel Thibault
2008-01-23  1:38           ` James Harper
2008-01-23  2:30             ` James Harper
2008-01-23  8:04               ` Keir Fraser
2008-01-23 14:25               ` John Levon
2008-01-23 14:33                 ` Keir Fraser
2008-01-23 14:45                   ` Christoph Egger
2008-01-23  8:48             ` Christoph Egger [this message]
2008-01-22 23:39 ` sizeof(long) different under windows x64 and linux x64 Andy Grover
2008-01-23  8:00   ` Keir Fraser
2008-01-23 20:41   ` Chris Morrow
2008-01-23 21:18     ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801230948.43437.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=dns@somacoma.net \
    --cc=james.harper@bendigoit.com.au \
    --cc=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.