Go to the documentation of this file. 1 #ifndef _ASM_X86_SWAB_H
2 #define _ASM_X86_SWAB_H
4 #include <linux/types.h>
5 #include <linux/compiler.h>
10 # ifdef CONFIG_X86_BSWAP
11 asm(
"bswap %0" :
"=r" (
val) :
"0" (val));
13 asm(
"xchgb %b0,%h0\n\t"
27 #define __arch_swab32 __arch_swab32
40 # ifdef CONFIG_X86_BSWAP
41 asm(
"bswapl %0 ; bswapl %1 ; xchgl %0,%1"
42 :
"=r" (
v.s.a),
"=r" (
v.s.b)
43 :
"0" (
v.s.a),
"1" (
v.s.b));
48 :
"=r" (
v.s.a),
"=r" (
v.s.b)
49 :
"0" (
v.s.a),
"1" (
v.s.b));
59 #define __arch_swab64 __arch_swab64