apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: What is the default size of apr_size_t on a 64 bit platform, 64 or 32?
Date Tue, 01 Aug 2006 18:47:51 GMT
E Holyat wrote:
> It is unclear to me what the default sizeof apr_size_t is on a 64 bit
> platform.  Is it 32 or 64?

It should match the scope of memory; size_t and off_t respectively are
used to determine the size of a pointer for pointer math.  E.g., the size
of an allocation, the relative position of one item or element in relation
to another, etc.  Almost any int arithmetic game one would play on a pointer
needs to be representable in an apr_size_t / apr_off_t (with the appropriate
non-signed or signedness games, respectively.)

View raw message