i960 Processor Compiler User's Guide
7-2
7
Table 7-1 Scalar Data Types
Data Type
Size
(bytes) Format Range
unsigned char 1 ordinal 0 to 255
[signed] char 1 2's-complement
integer
-128 to 127
unsigned short 2 ordinal 0 to 65535
[signed] short 2 2's-complement
integer
-32768 to 32767
unsigned int 4 ordinal 0 to 4,294,967,295
[signed] int 4 2's-complement
integer
-2,147,483,648 to
2,147,483,647
unsigned long 4 ordinal 0 to 4,294,967,295
[signed] long 4 2's-complement
integer
-2,147,483,648 to
2,147,483,647
float 4 single-precision
floating-point
1.17549435*10
-38
to
3.40282347*10
38
(approximate absolute
value)
double 8 double-precision
floating-point
2.2250738585072* 10
-308
to 1.7976931348623*
10
308
(approximate
absolute value)
long double 16 extended-precision
floating-point
3.362103143112094*10
-4
932
to
1.189731495357231*10
49
32
(approximate absolute
value)
bit field
1
(unsigned value)
1 to 32
bits
ordinal 0 to 2
size
-1 (Size is the
number of bits in the bit
field.)
1
Bit fields occupy as many bits as you assign them, up to a word (4 bytes), and their length need not
be a multiple of 8 bits (1 byte).
continued ☛