/freebsd/contrib/netbsd-tests/include/machine/ |
H A D | t_bswap.c | 78 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 D | endian.h | 48 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 D | endian.h | 45 #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 D | cd9660_conversion.c | 59 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 D | ffs_bswap.c | 124 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 D | ufs_bswap.h | 56 return ((ns) ? bswap16(a) : (a)); in ufs_rw16()
|
/freebsd/contrib/arm-optimized-routines/networking/ |
H A D | chksum_common.h | 39 #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 D | isp_freebsd.h | 539 #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 D | endian.h | 62 #undef bswap16 63 #define bswap16(a) __builtin_bswap16(a) macro
|
/freebsd/contrib/ofed/include/ |
H A D | byteswap.h | 38 #define bswap_16 bswap16
|
H A D | byteorder.h | 80 #define swab16 bswap16
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | bswap.c | 52 bswap16 (unsigned short val) in bswap16() function
|
H A D | roken.h.in | 718 #define bswap16 rk_bswap16 macro 719 ROKEN_LIB_FUNCTION unsigned short ROKEN_LIB_CALL bswap16(unsigned short);
|
/freebsd/tests/include/ |
H A D | byteswap_test.c | 44 #ifdef bswap16 in ATF_TC_BODY()
|
H A D | sys_endian_test.c | 40 #ifndef bswap16 in ATF_TC_BODY()
|
H A D | endian_test.c | 40 #ifdef bswap16 in ATF_TC_BODY()
|
/freebsd/contrib/smbfs/include/netsmb/ |
H A D | smb_lib.h | 86 #define getwle(buf,ofs) (bswap16(getwbe(buf,ofs))) 90 #define setwle(buf,ofs,val) getwbe(buf,ofs)=bswap16(val)
|
/freebsd/sys/sys/ |
H A D | endian.h | 65 #define bswap16(x) __bswap16(x) macro
|
/freebsd/contrib/arm-optimized-routines/networking/arm/ |
H A D | chksum_simd.c | 146 sum = bswap16(sum); in __chksum_arm_simd()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_lha.c | 1821 #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 D | byteorder.h | 118 #define swab16(x) bswap16(x)
|
/freebsd/contrib/openbsm/ |
H A D | configure.ac | 222 i = bswap16(0);
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | store.c | 467 value = bswap16(value); in krb5_store_int16() 515 *value = bswap16(*value); in krb5_ret_int16()
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | sender.c | 578 adrep->adrp_error = bswap16(adrep->adrp_error); in adrep_decode_header()
|
/freebsd/contrib/wpa/src/utils/ |
H A D | common.h | 31 #define bswap_16 bswap16
|