Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
swab.h
Go to the documentation of this file.
1 #ifndef _ASM_CRIS_ARCH_SWAB_H
2 #define _ASM_CRIS_ARCH_SWAB_H
3 
4 #include <asm/types.h>
5 
6 #define __SWAB_64_THRU_32__
7 
8 static inline __const__ __u32
10 {
11  __asm__ __volatile__ ("swapwb %0" : "=r" (x) : "0" (x));
12  return (x);
13 }
14 #define __arch_swab32 __arch_swab32
15 
16 static inline __const__ __u16
18 {
19  __asm__ __volatile__ ("swapb %0" : "=r" (x) : "0" (x));
20  return (x);
21 }
22 #define __arch_swab16 __arch_swab16
23 
24 #endif /* _ASM_CRIS_ARCH_SWAB_H */