GMP and 64-bit systems

Vincent Lefevre vincent at vinc17.org
Sun Jun 1 21:48:59 CEST 2008


On 2008-06-02 02:40:16 +1000, Joerg Arndt wrote:
> Does the standard guarantee that intptr_t is OK for all types of
> pointers?

It seems so, by transitivity:

       [#1] The following type designates  a  signed  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:

               intptr_t

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list