Searched refs:__builtin_bswap16 (Results 1 – 25 of 32) sorted by relevance
12
81 # define cpu_to_be16(v) ((__force __be16)__builtin_bswap16(v))82 # define be16_to_cpu(v) (__builtin_bswap16((__force u16)(v)))88 # define cpu_to_le16(v) ((__force __le16)__builtin_bswap16(v))89 # define le16_to_cpu(v) (__builtin_bswap16((__force u16)(v)))
38 static inline unsigned short __builtin_bswap16(unsigned short a) in __builtin_bswap16() function44 #define ENDSWAP_16(x) (__builtin_bswap16 (x))
23 # define __bpf_ntohs(x) __builtin_bswap16(x)24 # define __bpf_htons(x) __builtin_bswap16(x)
320 __builtin_bswap16(pkt_bytes + sizeof(struct ipv6hdr)); in encap_v6()337 __u32 ip_suffix = __builtin_bswap16(pckt->flow.port16[0]); in encap_v4()367 iph->tot_len = __builtin_bswap16(pkt_bytes + sizeof(struct iphdr)); in encap_v4()654 *pkt_bytes = __builtin_bswap16(ip6h->payload_len); in process_l3_headers_v6()686 *pkt_bytes = __builtin_bswap16(iph->tot_len); in process_l3_headers_v4()
31 #if LOCAL_GCC_PREREQ(4,8) || __has_builtin(__builtin_bswap16)44 return __builtin_bswap16(x); in BSwap16()
51 #if LOCAL_GCC_PREREQ(4, 8) || __has_builtin(__builtin_bswap16)70 return __builtin_bswap16(x); in BSwap16()
55 #if LOCAL_GCC_PREREQ(4, 8) || __has_builtin(__builtin_bswap16)74 return __builtin_bswap16(x); in BSwap16()
87 # define htole16(x) __builtin_bswap16(x)89 # define le16toh(x) __builtin_bswap16(x)
113 # define htole16(x) __builtin_bswap16(x)115 # define le16toh(x) __builtin_bswap16(x)
20 int h3 = __builtin_bswap16(0x1234) == 0x3412 ? 1 : f();
171 int h3 = __builtin_bswap16(0x1234) == 0x3412 ? 1 : f();
43 #define __builtin_bswap16 _bswap16 macro
30 return __builtin_bswap16(x); in ByteSwap()
46 X(uint16_t, __builtin_bswap16) \
31 return __builtin_bswap16(x); in ByteSwap()
101 #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
722 val = __builtin_bswap16(val); in mangle_AddSubWithRange()724 val = __builtin_bswap16(val); in mangle_AddSubWithRange()
225 # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
312 #define FLATBUFFERS_BYTESWAP16 __builtin_bswap16 in EndianSwap()
263 || (defined(__clang__) && MY__has_builtin(__builtin_bswap16)) )
199 return __builtin_bswap16(__t); in __revsh()
335 *(png_uint_16*)rp = __builtin_bswap16(*(png_uint_16*)rp); in png_do_swap()
334 *(png_uint_16*)rp = __builtin_bswap16(*(png_uint_16*)rp); in png_do_swap()
694 return __builtin_bswap16 (((packed_uint16_t *) this)->v); in operator Type()
1577 return static_cast<V>(__builtin_bswap16(static_cast<uint16_t>(value))); in ByteReverse()