[PATCH] support for mingw-w64

Vincent Lefevre vincent at vinc17.org
Fri Sep 11 22:42:53 CEST 2009

On 2009-09-11 14:05:17 +0200, Torbjorn Granlund wrote:
> My undertanding is that sizeof(ptrdiff_t) == sizeof(size_t) should hold
> true on any ISO C90 or C99 system.  They only differ in signedness.

This is not guaranteed by the standard. This has the drawback
that the subtraction of pointers may be wrong in some rare cases.
So, for very specific applications, there might be a good reason
to have sizeof(ptrdiff_t) > sizeof(size_t).

More on this subject:


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 / Arénaire project (LIP, ENS-Lyon)

More information about the gmp-devel mailing list