_bswap
Classification
Other, Bit Manipulation, CPUID Test: None
Header File
Instruction
BSWAP r32
Synopsis
_bswap(int a);
Description
Reverse the byte order of 32-bit integer "a", and store the result in "dst". This intrinsic is provided for conversion between little and big endian values.
Operation
dst[7:0] := a[31:24]
dst[15:8] := a[23:16]
dst[23:16] := a[15:8]
dst[31:24] := a[7:0]