apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Trawick" <traw...@gmail.com>
Subject Re: svn commit: r399750 - /apr/apr/trunk/network_io/unix/sendrecv.c
Date Thu, 04 May 2006 21:45:33 GMT
On 5/4/06, William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
> Colm MacCarthaigh wrote:
> > Can we be sure that INT_MAX == 2GB ? What about I64 platforms like
> > Alpha?
> Signed int max would be 30^2 on IBM 390 native architectures, right Jeff?

You're thinking of pointers in the ever popular 31-bit addressing
mode, where the high order bit isn't significant.  No such games with
ints, which don't vary in size between 31-bit addressing mode and
64-bit addressing mode:

/usr/include/limits.h:  #define INT_MAX       2147483647
/usr/include/limits.h:  #define UINT_MAX      4294967295U


Perhaps it was lost a couple of posts ago, but Joe's INT_MAX usage is
inside a Linux block and is needed only for a Linux "nuance".

View raw message