Files
linux-kernel-module-cheat/userland/arch/x86_64/bswap.S
Ciro Santilli 六四事件 法轮功 fd5b62edfe x86 asm: move bswap from x86-assembly-cheat
2019-06-22 00:00:02 +00:00

14 lines
180 B
ArmAsm

# # bswap
# Little endian <=> big endian.
#include <lkmc.h>
LKMC_PROLOGUE
mov $0x12345678, %eax
bswapl %eax
LKMC_ASSERT_EQ_32(%eax, $0x78563412)
LKMC_EPILOGUE