The standard unsigned 32-bit type: 4 billion values for sizes, counts, and bit manipulation
A 32-bit unsigned integer uses all 32 bits to represent magnitude, with no sign bit. This gives a range of 0 to 4,294,967,295 (232 - 1). It is the unsigned int type in C/C++ and u32 in Rust.
UINT32 is the natural type for quantities that are never negative: array sizes, memory addresses, pixel counts, and hash values. By not reserving a bit for the sign, UINT32 doubles the positive range compared to INT32.
In systems programming, UINT32 is used for pointer arithmetic, memory-mapped register access, and bitfield manipulation where arithmetic sign semantics are not needed. In graphics, UINT32 stores RGBA pixel values as four packed bytes.
| Property | Value |
|---|---|
| Total Bits | 32 |
| Minimum Value | 0 |
| Maximum Value | 4,294,967,295 |
| Representable Values | 4,294,967,296 |
| Value | Bit Pattern | Signed | Unsigned |
|---|---|---|---|
| Zero | 00000000000000000000000000000000 | 0 | 0 |
| One | 00000000000000000000000000000001 | 1 | 1 |
| Max Unsigned | 11111111111111111111111111111111 | -1 | 4294967295 |
| Max Signed | 01111111111111111111111111111111 | 2147483647 | 2147483647 |
| All Ones (-1) | 11111111111111111111111111111111 | -1 | 4294967295 |
| Min Signed (-2147483648) | 10000000000000000000000000000000 | -2147483648 | 2147483648 |
Click any bit to flip it. All 32 bits contribute directly to the unsigned magnitude.
| Property | UINT32 | UINT16 | UINT8 | UINT4 |
|---|---|---|---|---|
| Total Bits | 32 | 16 | 8 | 4 |
| Signed Min | -2,147,483,648 | -32,768 | -128 | -8 |
| Signed Max | 2,147,483,647 | 32,767 | 127 | 7 |
| Unsigned Max | 4,294,967,295 | 65,535 | 255 | 15 |
| Step (ULP) | 1 | 1 | 1 | 1 |
| Values | 4,294,967,296 | 65,536 | 256 | 16 |
int32_data field to store packed sub-32-bit types including INT4, UINT4, FP8, FP4, FLOAT16, BFLOAT16, and BOOL - making UINT32 the universal container for narrow-format tensors..u32 as an accumulator type for unsigned integer Tensor Core operations.torch.uint32 for unsigned 32-bit tensor storage.