The SPE supports big-endian data ordering, an ordering in which the lowest-address byte and lowest-numbered bit are the most-significant (high) byte and bit, respectively.
The SPU hardware defines the following data types:
These data types are indicated by shading in Figure 2. The left-most word (bytes 0, 1, 2, and 3) of a register is called the preferred scalar slot (also shown in Figure 2).
Vector Data Type | Content |
---|---|
vector unsigned char | Sixteen 8-bit unsigned chars |
vector signed char | Sixteen 8-bit signed chars |
vector unsigned short | Eight 16-bit unsigned halfwords |
vector signed short | Eight 16-bit signed halfwords |
vector unsigned int | Four 32-bit unsigned words |
vector signed int | Four 32-bit signed words |
vector unsigned long long | Two 64-bit unsigned doublewords |
vector signed long long | Two 64-bit signed doublewords |
vector float | Four 32-bit single-precision floats |
vector double | Two 64-bit double precision floats |
qword | quadword (16-byte) |