• Home
  • Raw
  • Download

Lines Matching defs:x

70 #define uswap_16(x) \
71 ((((x) & 0xff00) >> 8) | \
72 (((x) & 0x00ff) << 8))
73 #define uswap_32(x) \
74 ((((x) & 0xff000000) >> 24) | \
75 (((x) & 0x00ff0000) >> 8) | \
76 (((x) & 0x0000ff00) << 8) | \
77 (((x) & 0x000000ff) << 24))
78 #define _uswap_64(x, sfx) \
79 ((((x) & 0xff00000000000000##sfx) >> 56) | \
80 (((x) & 0x00ff000000000000##sfx) >> 40) | \
81 (((x) & 0x0000ff0000000000##sfx) >> 24) | \
82 (((x) & 0x000000ff00000000##sfx) >> 8) | \
83 (((x) & 0x00000000ff000000##sfx) << 8) | \
84 (((x) & 0x0000000000ff0000##sfx) << 24) | \
85 (((x) & 0x000000000000ff00##sfx) << 40) | \
86 (((x) & 0x00000000000000ff##sfx) << 56))
88 # define uswap_64(x) _uswap_64(x, ull)
90 # define uswap_64(x) _uswap_64(x, )
94 # define cpu_to_le16(x) (x)
95 # define cpu_to_le32(x) (x)
96 # define cpu_to_le64(x) (x)
97 # define le16_to_cpu(x) (x)
98 # define le32_to_cpu(x) (x)
99 # define le64_to_cpu(x) (x)
100 # define cpu_to_be16(x) uswap_16(x)
101 # define cpu_to_be32(x) uswap_32(x)
102 # define cpu_to_be64(x) uswap_64(x)
103 # define be16_to_cpu(x) uswap_16(x)
104 # define be32_to_cpu(x) uswap_32(x)
105 # define be64_to_cpu(x) uswap_64(x)
107 # define cpu_to_le16(x) uswap_16(x)
108 # define cpu_to_le32(x) uswap_32(x)
109 # define cpu_to_le64(x) uswap_64(x)
110 # define le16_to_cpu(x) uswap_16(x)
111 # define le32_to_cpu(x) uswap_32(x)
112 # define le64_to_cpu(x) uswap_64(x)
113 # define cpu_to_be16(x) (x)
114 # define cpu_to_be32(x) (x)
115 # define cpu_to_be64(x) (x)
116 # define be16_to_cpu(x) (x)
117 # define be32_to_cpu(x) (x)
118 # define be64_to_cpu(x) (x)
144 #define likely(x) __builtin_expect(!!(x), 1)
145 #define unlikely(x) __builtin_expect(!!(x), 0)