26.3 __builtin_bswap32 Built-in Function

Returns its argument with the order of its bytes reversed. For example, an argument value of 0xaabbccdd is returned as 0xddccbbaa. A byte here always means exactly 8 bits.

Prototype

uint32_t __builtin_bswap32 (uint32_t x)

Argument

x: the value whose bytes are to be swapped

Return Value

The byte-swapped value

Error Messages

None.