_bswap64
Classification
Other, Bit Manipulation, CPUID Test: None
Header File
immintrin.h
Instruction
BSWAP r64
Synopsis
 _bswap64(__int64 a);
Description
Reverse the byte order of 64-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[63:56]
dst[15:8] := a[55:48]
dst[23:16] := a[47:40]
dst[31:24] := a[39:32]
dst[39:32] := a[31:24]
dst[47:40] := a[23:16]
dst[55:48] := a[15:8]
dst[63:56] := a[7:0]