long_long_(64-bit)_integers.rst (988B)
1 Long Long integers 2 ================== 3 4 This chapter describes the global functions you use to perform 64-bit 5 integer operations. The functions define a portable API that can be used 6 reliably in any environment. Where 64-bit integers are desired, use of 7 NSPR's implementation is recommended to ensure cross-platform 8 compatibility. 9 10 Most of the 64-bit integer operations are implemented as macros. The 11 specific implementation of each macro depends on whether the compiler 12 for the target platform supports 64-bit integers. For a specific target 13 platform, if 64-bit integers are supported for that platform, define 14 ``HAVE_LONG_LONG`` at compile time. 15 16 .. _64-Bit_Integer_Types: 17 18 64-Bit Integer Types 19 ~~~~~~~~~~~~~~~~~~~~ 20 21 NSPR provides two types to represent 64-bit integers: 22 23 - :ref:`PRInt64` 24 - :ref:`PRUint64` 25 26 .. _64-Bit_Integer_Functions: 27 28 64-Bit Integer Functions 29 ~~~~~~~~~~~~~~~~~~~~~~~~ 30 31 The API defined for the 64-bit integer functions is consistent across 32 all supported platforms.