Home
last modified time | relevance | path

Searched refs:bswap16 (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/contrib/netbsd-tests/include/machine/
H A Dt_bswap.c78 ATF_REQUIRE_EQ(bswap16(0x0000), 0x0000); in ATF_TC_BODY()
79 ATF_REQUIRE_EQ(bswap16(0xff00), 0x00ff); in ATF_TC_BODY()
80 ATF_REQUIRE_EQ(bswap16(0xffff), 0xffff); in ATF_TC_BODY()
81 ATF_REQUIRE_EQ(bswap16(0x1234), 0x3412); in ATF_TC_BODY()
94 ATF_REQUIRE_EQ(bswap16(unconst16(0x0000)), 0x0000); in ATF_TC_BODY()
95 ATF_REQUIRE_EQ(bswap16(unconst16(0xff00)), 0x00ff); in ATF_TC_BODY()
96 ATF_REQUIRE_EQ(bswap16(unconst16(0xffff)), 0xffff); in ATF_TC_BODY()
97 ATF_REQUIRE_EQ(bswap16(unconst16(0x1234)), 0x3412); in ATF_TC_BODY()
/freebsd/contrib/openbsm/compat/
H A Dendian.h48 bswap16(uint16_t int16) in bswap16() function
125 #define htobe16(x) bswap16((x))
132 #define be16toh(x) bswap16((x))
142 #define htole16(x) bswap16((x))
149 #define le16toh(x) bswap16((x))
/freebsd/tools/build/cross-build/include/mac/sys/
H A Dendian.h45 #define bswap16(x) __builtin_bswap16(x) macro
57 #define htobe16(x) bswap16((x))
64 #define be16toh(x) bswap16((x))
74 #define htole16(x) bswap16((x))
81 #define le16toh(x) bswap16((x))
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c59 w = bswap16(w); in cd9660_721()
78 w = bswap16(w); in cd9660_722()
126 be = bswap16(dw); in cd9660_bothendian_word()
130 le = bswap16(dw); in cd9660_bothendian_word()
/freebsd/usr.sbin/makefs/ffs/
H A Dffs_bswap.c124 n->di_mode = bswap16(o->di_mode); in ffs_dinode1_swap()
125 n->di_nlink = bswap16(o->di_nlink); in ffs_dinode1_swap()
145 n->di_mode = bswap16(o->di_mode); in ffs_dinode2_swap()
146 n->di_nlink = bswap16(o->di_nlink); in ffs_dinode2_swap()
206 n->cg_old_ncyl = bswap16(o->cg_old_ncyl); in ffs_cg_swap()
207 n->cg_old_niblk = bswap16(o->cg_old_niblk); in ffs_cg_swap()
252 n16[i] = bswap16(o16[i]); in ffs_cg_swap()
H A Dufs_bswap.h56 return ((ns) ? bswap16(a) : (a)); in ufs_rw16()
/freebsd/contrib/arm-optimized-routines/networking/
H A Dchksum_common.h39 #define bswap16(x) __builtin_bswap16((x)) macro
46 #define bswap16(x) ((uint8_t)((x) >> 8) | ((uint8_t)(x) << 8)) macro
126 sum = bswap16(sum); in fold_and_swap()
/freebsd/sys/dev/isp/
H A Disp_freebsd.h539 #define ISP_IOXPUT_16(isp, s, d) *(d) = bswap16(s)
542 #define ISP_IOXGET_16(isp, s, d) d = bswap16(*((uint16_t *)s))
544 #define ISP_SWIZZLE_NVRAM_WORD(isp, rp) *rp = bswap16(*rp)
565 #define ISP_IOZPUT_16(isp, s, d) *(d) = bswap16(s)
568 #define ISP_IOZGET_16(isp, s, d) d = bswap16(*((uint16_t *)(s)))
572 #define ISP_SWAP16(isp, s) bswap16(s)
/freebsd/tools/build/cross-build/include/linux/sys/
H A Dendian.h62 #undef bswap16
63 #define bswap16(a) __builtin_bswap16(a) macro
/freebsd/contrib/ofed/include/
H A Dbyteswap.h38 #define bswap_16 bswap16
H A Dbyteorder.h80 #define swab16 bswap16
/freebsd/crypto/heimdal/lib/roken/
H A Dbswap.c52 bswap16 (unsigned short val) in bswap16() function
H A Droken.h.in718 #define bswap16 rk_bswap16 macro
719 ROKEN_LIB_FUNCTION unsigned short ROKEN_LIB_CALL bswap16(unsigned short);
/freebsd/tests/include/
H A Dbyteswap_test.c44 #ifdef bswap16 in ATF_TC_BODY()
H A Dsys_endian_test.c40 #ifndef bswap16 in ATF_TC_BODY()
H A Dendian_test.c40 #ifdef bswap16 in ATF_TC_BODY()
/freebsd/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h86 #define getwle(buf,ofs) (bswap16(getwbe(buf,ofs)))
90 #define setwle(buf,ofs,val) getwbe(buf,ofs)=bswap16(val)
/freebsd/sys/sys/
H A Dendian.h65 #define bswap16(x) __bswap16(x) macro
/freebsd/contrib/arm-optimized-routines/networking/arm/
H A Dchksum_simd.c146 sum = bswap16(sum); in __chksum_arm_simd()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_lha.c1821 #undef bswap16 in lha_crc16()
1826 # define bswap16(x) _byteswap_ushort(x) in lha_crc16() macro
1829 # define bswap16(x) __builtin_bswap16(x) in lha_crc16()
1832 # define bswap16(x) __builtin_bswap16(x) in lha_crc16()
1834 # define bswap16(x) ((((x) >> 8) & 0xff) | ((x) << 8)) in lha_crc16()
1838 crc ^= bswap16(*buff); buff++; \ in lha_crc16()
1848 #undef bswap16 in lha_crc16()
/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h118 #define swab16(x) bswap16(x)
/freebsd/contrib/openbsm/
H A Dconfigure.ac222 i = bswap16(0);
/freebsd/crypto/heimdal/lib/krb5/
H A Dstore.c467 value = bswap16(value); in krb5_store_int16()
515 *value = bswap16(*value); in krb5_ret_int16()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsender.c578 adrep->adrp_error = bswap16(adrep->adrp_error); in adrep_decode_header()
/freebsd/contrib/wpa/src/utils/
H A Dcommon.h31 #define bswap_16 bswap16

12