Returns the register width of the CPU of the system on which 3DLDF is being run. This will normally be either 32 or 64 bits.
This is the C++ code:
return (sizeof(void*) * CHAR_BIT);This assumes that an address will be the same size as the processor's registers, and that
CHAR_BIT
will be the number of bits in a byte. These are reasonable assumptions that apply to all architectures I know about.This function is called by
is_32_bit()
andis_64_bit()
.