[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Using 64-bit Integers

The C compiler lets you define a 64-bit integer with the type specifier long long. This behavior is controlled by the longlong pragma. There is no item in the C/C++ Language Panel to control this option.

If this option is on, you may declare a long long integer. A long long can hold values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. An unsigned long long can hold values from 0 to 18,446,744,073,709,551,615.

If this option is off, using long long causes a syntax error.

In an enumerated type, you can use an enumerator large enough for a long long. For more information, see "Enumerated Types." However, long long bitfields are not supported.

You control the long long type with pragma longlong.To check whether this option is on, use __option (long-long). By default, this pragma is on.

See also "longlong" and "Checking Options."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000