We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0829014 commit fd5b62eCopy full SHA for fd5b62e
README.adoc
@@ -12397,6 +12397,7 @@ Bibliography:
12397
* Integer typecasts
12398
** link:userland/arch/x86_64/movzx.S[]: MOVZX
12399
** link:userland/arch/x86_64/movsx.S[]: MOVSX
12400
+* link:userland/arch/x86_64/bswap.S[]: BSWAP: convert between little endian and big endian
12401
12402
==== x86 CQTO and CLTQ instructions
12403
userland/arch/x86_64/bswap.S
@@ -0,0 +1,13 @@
1
+# # bswap
2
+
3
+ # Little endian <=> big endian.
4
5
+#include <lkmc.h>
6
7
+LKMC_PROLOGUE
8
9
+ mov $0x12345678, %eax
10
+ bswapl %eax
11
+ LKMC_ASSERT_EQ_32(%eax, $0x78563412)
12
13
+LKMC_EPILOGUE
0 commit comments