Last update: 05 February,1998
97 #006 _____________________________________________________________________________ Topic: 64-bit types on 32 bit systems Relevant Sections: inttypes.h Spec: XSH Issue 5 Resolution Request: ------------------- The VSX5 Test Suites expects that int64_t and uint64_t to be defined. This requirement is stated on page 1089 of the XPG5 XSH vol 2. However, on our 32 bit implementation, there is no 64 bit type available. We believe that requiring 64 bit types on 32 bit systems is an error in the spec Proposed Resolution Response ------------------- Proposal for <inttypes.h> manual page: NAME inttypes.h - fixed size integral types SYNOPSIS #include <inttypes.h> DESCRIPTION The <inttypes.h> header includes definitions of at least the following types: int8_t 8-bit signed integral type. int16_t 16-bit signed integral type. int32_t 32-bit signed integral type. uint8_t 8-bit unsigned integral type. uint16_t 16-bit unsigned integral type. uint32_t 32-bit unsigned integral type. intptr_t Signed integral type large enough to hold any pointer. uintptr_t Unsigned integral type large enough to hold any pointer. If any of the following are true: + the implementation supports the XBS5_ILP32_OFFBIG Programming Environment and the application is being built in the XBS5_ILP32_OFFBIG Programming Environment (see Programming Environments in the Extended Description section of the XCU specification description of c89), + the implementation supports the XBS_LP64_OFF64 Programming Environment and the application is being built in the XBS_LP64_OFF64 Programming Environment, or + the implementation supports the XBS5_LPBIG_OFFBIG Programming Environment and the application is being built in the XBS5_LPBIG_OFFBIG Programming Environment then <inttypes.h> also includes definitions for the following types: int64_t 64-bit signed integral type. uint64_t 64-bit unsigned integral type. APPLICATION USAGE None. FUTURE DIRECTIONS None. SEE ALSO None. Rationale ------------- None. Circulated for review: Aug 28th 1997 Approved: February 1998