x86 asm: move bswap from x86-assembly-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-22 00:00:02 +00:00
parent 082901414a
commit fd5b62edfe
2 changed files with 14 additions and 0 deletions

View File

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