Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
endian24.h File Reference

Go to the source code of this file.

Macros

#define __swab24(x)
 
#define __cpu_to_le24(x)   __swab24(x)
 
#define __le24_to_cpu(x)   __swab24(x)
 

Macro Definition Documentation

#define __cpu_to_le24 (   x)    __swab24(x)

Definition at line 40 of file endian24.h.

#define __le24_to_cpu (   x)    __swab24(x)

Definition at line 41 of file endian24.h.

#define __swab24 (   x)
Value:
({ \
__u32 __x = (x); \
((__u32)( \
((__x & (__u32)0x000000ffUL) << 16) | \
(__x & (__u32)0x0000ff00UL) | \
((__x & (__u32)0x00ff0000UL) >> 16) )); \
})

Definition at line 27 of file endian24.h.