| Bits | Name | Range | Decimal digits | Uses |
| 8 | byte, octet | Signed: −128 to +127 | 3 | ASCII characters, C/C++ char, C/C++ int8_t, Java byte, C# byte |
| Unsigned: 0 to +255 | 3 | |||
| 16 | halfword, word | Signed: −32,768 to +32,767 | 5 | UCS-2 characters, C/C++ short, C/C++ int16_t, Java short, C# short, Java char |
| Unsigned: 0 to +65,535 | 5 | |||
| 32 | word, long, doubleword, longword | Signed: −2,147,483,648 to +2,147,483,647 | 10 | UCS-4 characters, Truecolor with alpha, C/C++ long, C/C++ int32_t, Java int, C# int, FourCC |
| Unsigned: 0 to +4,294,967,295 | 10 | |||
| 64 | doubleword, longword, long long, quad, quadword | Signed: −9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 | 19 | C/C++ long long, C/C++ int64_t, Java long, C# long |
| Unsigned: 0 to +18,446,744,073,709,551,615 | 20 | |||
| 128 | octaword | Signed: −170,141,183,460,469,231,731,687,303,715,884,105,728 to +170,141,183,460,469,231,731,687,303,715,884,105,727 | 39 | C only available as non-standard compiler-specific extension |
| Unsigned: 0 to +340,282,366,920,938,463,463,374,607,431,768,211,455 | 39 | |||
| n | n-bit integer (general case) | Signed: ( − 2n − 1) to (2n − 1 − 1) | Ada range 2**(n-1) .. 2**n; | |
| Unsigned: 0 to (2n − 1) | Ada mod 2**n; |
Thursday, February 19, 2009
Subscribe to:
Posts (Atom)

