1#ifndef _LINUX_BYTEORDER_SWAB_H
2#define _LINUX_BYTEORDER_SWAB_H
27 (((__u16)(__x) & (__u16)0x00ffU) << 8) | \
28 (((__u16)(__x) & (__u16)0xff00U) >> 8) )); \
35 (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | \
36 (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | \
37 (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | \
38 (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); \
45 (__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | \
46 (__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | \
47 (__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | \
48 (__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | \
49 (__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | \
50 (__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
51 (__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | \
52 (__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); \
55#define ___constant_swab16(x) \
57 (((__u16)(x) & (__u16)0x00ffU) << 8) | \
58 (((__u16)(x) & (__u16)0xff00U) >> 8) ))
59#define ___constant_swab32(x) \
61 (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
62 (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
63 (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
64 (((__u32)(x) & (__u32)0xff000000UL) >> 24) ))
65#define ___constant_swab64(x) \
67 (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
68 (__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
69 (__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
70 (__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
71 (__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
72 (__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
73 (__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
74 (__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) ))
80# define __arch__swab16(x) ({ __u16 __tmp = (x) ; ___swab16(__tmp); })
83# define __arch__swab32(x) ({ __u32 __tmp = (x) ; ___swab32(__tmp); })
86# define __arch__swab64(x) ({ __u64 __tmp = (x) ; ___swab64(__tmp); })
89#ifndef __arch__swab16p
90# define __arch__swab16p(x) __arch__swab16(*(x))
92#ifndef __arch__swab32p
93# define __arch__swab32p(x) __arch__swab32(*(x))
95#ifndef __arch__swab64p
96# define __arch__swab64p(x) __arch__swab64(*(x))
99#ifndef __arch__swab16s
100# define __arch__swab16s(x) do { *(x) = __arch__swab16p((x)); } while (0)
102#ifndef __arch__swab32s
103# define __arch__swab32s(x) do { *(x) = __arch__swab32p((x)); } while (0)
105#ifndef __arch__swab64s
106# define __arch__swab64s(x) do { *(x) = __arch__swab64p((x)); } while (0)
113#if defined(__GNUC__) && (__GNUC__ >= 2) && defined(__OPTIMIZE__)
114# define __swab16(x) \
115(__builtin_constant_p((__u16)(x)) ? \
118# define __swab32(x) \
119(__builtin_constant_p((__u32)(x)) ? \
122# define __swab64(x) \
123(__builtin_constant_p((__u64)(x)) ? \
127# define __swab16(x) __fswab16(x)
128# define __swab32(x) __fswab32(x)
129# define __swab64(x) __fswab64(x)
159#ifdef __BYTEORDER_HAS_U64__
162# ifdef __SWAB_64_THRU_32__
174static __inline__
void __swab64s(
__u64 *
addr)
180#if defined(__KERNEL__)
181#define swab16 __swab16
182#define swab32 __swab32
183#define swab64 __swab64
184#define swab16p __swab16p
185#define swab32p __swab32p
186#define swab64p __swab64p
187#define swab16s __swab16s
188#define swab32s __swab32s
189#define swab64s __swab64s
GLint GLint GLint GLint GLint x
GLenum const GLvoid * addr
GLfloat GLfloat GLfloat GLfloat h
#define __attribute_const__
#define __arch__swab64s(x)
static __inline__ __u16 __swab16p(const __u16 *x)
#define __arch__swab16p(x)
static __inline__ void __swab32s(__u32 *addr)
#define __arch__swab64(x)
static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
#define __arch__swab16(x)
static __inline__ __attribute_const__ __u32 __fswab32(__u32 x)
static __inline__ __u32 __swab32p(const __u32 *x)
#define __arch__swab32p(x)
static __inline__ void __swab16s(__u16 *addr)
#define __arch__swab32s(x)
#define __arch__swab32(x)
#define __arch__swab16s(x)
#define __arch__swab64p(x)