/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/Common/ |
H A D | Swap.h | 34 #undef swap16 40 inline u16 swap16(u16 data) in swap16() function 53 inline u16 swap16(u16 data) in swap16() function 66 inline __attribute__((always_inline)) u16 swap16(u16 data) in swap16() function 79 inline u16 swap16(u16 data) in swap16() function 93 inline u16 swap16(u16 data) in swap16() function 99 return (swap16(data) << 16) | swap16(data >> 16); in swap32() 107 inline u16 swap16(const u8* data) in swap16() function 112 return swap16(value); in swap16() 140 const u16 value = swap16(data);
|
/dports/net/pktanon/pktanon-1.4.0-dev/src/packets/ |
H A D | TcpPacket.cpp | 113 header.checksum = swap16(header.checksum ); in parsePacket() 114 header.destport = swap16(header.destport ); in parsePacket() 117 header.sourceport = swap16(header.sourceport ); in parsePacket() 119 header.windowsize = swap16(header.windowsize ); in parsePacket() 238 header.checksum = swap16(header.checksum ); in assemblePacket() 239 header.destport = swap16(header.destport ); in assemblePacket() 242 header.sourceport = swap16(header.sourceport ); in assemblePacket() 244 header.windowsize = swap16(header.windowsize ); in assemblePacket() 291 header.checksum = swap16(header.checksum ); in assemblePacket() 292 header.destport = swap16(header.destport ); in assemblePacket() [all …]
|
H A D | UdpPacket.cpp | 66 header.destport = swap16(header.destport); in parsePacket() 67 header.sourceport = swap16(header.sourceport); in parsePacket() 68 header.checksum = swap16(header.checksum); in parsePacket() 69 header.len = swap16(header.len); in parsePacket() 137 header.destport = swap16(header.destport); in assemblePacket() 139 header.checksum = swap16(header.checksum); in assemblePacket() 140 header.len = swap16(header.len); in assemblePacket() 183 header.destport = swap16(header.destport); in assemblePacket() 185 header.checksum = swap16(header.checksum); in assemblePacket() 186 header.len = swap16(header.len); in assemblePacket() [all …]
|
H A D | ArpPacket.cpp | 47 header.hardwaretype = swap16 (header.hardwaretype); in parsePacket() 48 header.protocoltype = swap16 (header.protocoltype); in parsePacket() 49 header.opcode = swap16 (header.opcode); in parsePacket() 61 header.hardwaretype = swap16 (header.hardwaretype); in assemblePacket() 62 header.protocoltype = swap16 (header.protocoltype); in assemblePacket() 63 header.opcode = swap16 (header.opcode); in assemblePacket() 67 header.hardwaretype = swap16 (header.hardwaretype); in assemblePacket() 68 header.protocoltype = swap16 (header.protocoltype); in assemblePacket() 69 header.opcode = swap16 (header.opcode); in assemblePacket()
|
H A D | IpPacket.cpp | 64 header.totallen = swap16(header.totallen); in parsePacket() 65 header.identification = swap16(header.identification); in parsePacket() 66 header.flags_fragoffset = swap16(header.flags_fragoffset); in parsePacket() 67 header.checksum = swap16(header.checksum); in parsePacket() 283 header.totallen = swap16(header.totallen ); in assemblePacket() 284 header.identification = swap16(header.identification ); in assemblePacket() 285 header.flags_fragoffset = swap16(header.flags_fragoffset); in assemblePacket() 286 header.checksum = swap16(header.checksum ); in assemblePacket() 314 header.totallen = swap16(header.totallen ); in assemblePacket() 315 header.identification = swap16(header.identification ); in assemblePacket() [all …]
|
H A D | VlanPacket.cpp | 45 header.type = swap16 (header.type); in parsePacket() 46 header.priority_cfi_id = swap16 (header.priority_cfi_id); in parsePacket() 74 header.type = swap16 (header.type); in assemblePacket() 75 header.priority_cfi_id = swap16 (header.priority_cfi_id); in assemblePacket() 77 header.type = swap16 (header.type); in assemblePacket() 78 header.priority_cfi_id = swap16 (header.priority_cfi_id); in assemblePacket()
|
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/Common/ |
H A D | BitSet.h | 48 #undef swap16 53 inline uint16_t swap16(uint16_t _data) { return _byteswap_ushort(_data); } 57 inline uint16_t swap16(uint16_t _data) { return __builtin_bswap16(_data); } 62 inline uint16_t swap16(uint16_t data) { return (data >> 8) | (data << 8); } 63 inline uint32_t swap32(uint32_t data) { return (swap16(data) << 16) | swap16(data >> 16); } 67 inline uint16_t swap16(const uint8_t* _pData) { return swap16(*(const uint16_t*)_pData); }
|
/dports/emulators/ppsspp/ppsspp-1.12.3/Common/ |
H A D | BitSet.h | 48 #undef swap16 53 inline uint16_t swap16(uint16_t _data) { return _byteswap_ushort(_data); } in swap16() function 57 inline uint16_t swap16(uint16_t _data) { return __builtin_bswap16(_data); } in swap16() function 62 inline uint16_t swap16(uint16_t data) { return (data >> 8) | (data << 8); } in swap16() function 63 inline uint32_t swap32(uint32_t data) { return (swap16(data) << 16) | swap16(data >> 16); } in swap32() 67 inline uint16_t swap16(const uint8_t* _pData) { return swap16(*(const uint16_t*)_pData); } in swap16() function
|
/dports/emulators/libretro-ppsspp/ppsspp-1.12.3/Common/ |
H A D | BitSet.h | 48 #undef swap16 53 inline uint16_t swap16(uint16_t _data) { return _byteswap_ushort(_data); } in swap16() function 57 inline uint16_t swap16(uint16_t _data) { return __builtin_bswap16(_data); } in swap16() function 62 inline uint16_t swap16(uint16_t data) { return (data >> 8) | (data << 8); } in swap16() function 63 inline uint32_t swap32(uint32_t data) { return (swap16(data) << 16) | swap16(data >> 16); } in swap32() 67 inline uint16_t swap16(const uint8_t* _pData) { return swap16(*(const uint16_t*)_pData); } in swap16() function
|
/dports/lang/ocaml/ocaml-4.05.0/testsuite/tests/prim-bigstring/ |
H A D | string_access.ml | 57 let swap16 x = function 73 caml_string_set_16 s 0 (swap16 0x1234); 75 (swap16 (caml_string_get_16 s 0)) 76 (swap16 (caml_string_get_16 s 1)) 77 (swap16 (caml_string_get_16 s 2)); 78 caml_string_set_16 s 0 (swap16 0xFEDC); 80 (swap16 (caml_string_get_16 s 0)) 81 (swap16 (caml_string_get_16 s 1)) 82 (swap16 (caml_string_get_16 s 2))
|
H A D | bigstring_access.ml | 70 let swap16 x = 86 caml_bigstring_set_16 s 0 (swap16 0x1234); 88 (swap16 (caml_bigstring_get_16 s 0)) 89 (swap16 (caml_bigstring_get_16 s 1)) 90 (swap16 (caml_bigstring_get_16 s 2)); 91 caml_bigstring_set_16 s 0 (swap16 0xFEDC); 93 (swap16 (caml_bigstring_get_16 s 0)) 94 (swap16 (caml_bigstring_get_16 s 1)) 95 (swap16 (caml_bigstring_get_16 s 2))
|
/dports/lang/ocaml-nox11/ocaml-4.05.0/testsuite/tests/prim-bigstring/ |
H A D | string_access.ml | 57 let swap16 x = function 73 caml_string_set_16 s 0 (swap16 0x1234); 75 (swap16 (caml_string_get_16 s 0)) 76 (swap16 (caml_string_get_16 s 1)) 77 (swap16 (caml_string_get_16 s 2)); 78 caml_string_set_16 s 0 (swap16 0xFEDC); 80 (swap16 (caml_string_get_16 s 0)) 81 (swap16 (caml_string_get_16 s 1)) 82 (swap16 (caml_string_get_16 s 2))
|
H A D | bigstring_access.ml | 70 let swap16 x = 86 caml_bigstring_set_16 s 0 (swap16 0x1234); 88 (swap16 (caml_bigstring_get_16 s 0)) 89 (swap16 (caml_bigstring_get_16 s 1)) 90 (swap16 (caml_bigstring_get_16 s 2)); 91 caml_bigstring_set_16 s 0 (swap16 0xFEDC); 93 (swap16 (caml_bigstring_get_16 s 0)) 94 (swap16 (caml_bigstring_get_16 s 1)) 95 (swap16 (caml_bigstring_get_16 s 2))
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/Core/IOS/Network/WD/ |
H A D | Command.cpp | 42 results[0] = Common::swap16(1); in IOCtlV() 47 bss->length = Common::swap16(sizeof(BSSInfo)); in IOCtlV() 48 bss->rssi = Common::swap16(0xffff); in IOCtlV() 55 bss->ssid_length = Common::swap16((u16)strlen(ssid)); in IOCtlV() 57 bss->channel = Common::swap16(2); in IOCtlV() 67 info->ntr_allowed_channels = Common::swap16(0xfffe); in IOCtlV()
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/Core/IOS/USB/ |
H A D | Common.cpp | 71 bcdUSB = Common::swap16(bcdUSB); in Swap() 72 idVendor = Common::swap16(idVendor); in Swap() 73 idProduct = Common::swap16(idProduct); in Swap() 74 bcdDevice = Common::swap16(bcdDevice); in Swap() 79 wTotalLength = Common::swap16(wTotalLength); in Swap() 88 wMaxPacketSize = Common::swap16(wMaxPacketSize); in Swap()
|
/dports/irc/kvirc/KVIrc-5.0.0-73-gbdeac0429/src/kvilib/system/ |
H A D | KviByteOrder.h | 71 inline kvi_u16_t swap16(kvi_u16_t i) in swap16() function 93 return swap16(u); in localCpuToLittleEndian16() 108 return swap16(u); in littleEndianToLocalCpu16() 218 return swap16(u); in localCpuToBigEndian16() 233 return swap16(u); in bigEndianToLocalCpu16() 248 return swap16(u); in localCpuToNetworkByteOrder16() 263 return swap16(u); in networkByteOrderToLocalCpu16()
|
/dports/games/0ad/0ad-0.0.23b-alpha/source/lib/ |
H A D | byte_order.h | 77 # define to_le16(x) swap16(x) 90 # define to_be16(x) swap16(x) 140 # define swap16 _byteswap_ushort macro 145 # if defined(__arch__swab16) && !defined(swap16) 146 # define swap16 __arch__swab16 macro 156 #ifndef swap16 157 LIB_API u16 swap16(const u16 x);
|
/dports/net-mgmt/pktstat/pktstat-46935839b/ |
H A D | type.h | 31 #if !defined(swap16) || !defined(swap32) 32 # undef swap16 33 # define swap16(x) (uint16_t)( ((uint16_t)(x) & 0x00ff << 8) \ macro 86 # define letoh16(x) swap16(x) 93 # define betoh16(x) swap16(x)
|
/dports/devel/elfsh/elfsh-0.51b3/libelfsh/ |
H A D | elf.c | 320 e->e_type = swap16(e->e_type); 321 e->e_machine = swap16(e->e_machine); 327 e->e_ehsize= swap16(e->e_ehsize); 328 e->e_phentsize = swap16(e->e_phentsize); 329 e->e_phnum = swap16(e->e_phnum); 330 e->e_shentsize = swap16(e->e_shentsize); 331 e->e_shnum = swap16(e->e_shnum); 332 e->e_shstrndx = swap16(e->e_shstrndx);
|
/dports/audio/noson-app/noson-app-4.5.0/backend/NosonMediaScanner/ |
H A D | byteorder.h | 56 static inline int16_t swap16(int16_t val) in swap16() function 78 return swap16(val); in read16le() 86 toUnaligned(data, swap16(val)); in write16le() 94 return swap16(val); in read16be() 102 toUnaligned(data, swap16(val)); in write16be()
|
/dports/textproc/freexl/freexl-1.0.6/src/ |
H A D | freexl.c | 112 swap16 (biff_word16 * word) in swap16() function 348 swap16 (&word16); in get_unicode_params() 2093 swap16 (&word16); in legacy_emergency_dimension() 2098 swap16 (&word16); in legacy_emergency_dimension() 2120 swap16 (&word16); in legacy_emergency_dimension() 2125 swap16 (&word16); in legacy_emergency_dimension() 2147 swap16 (&word16); in legacy_emergency_dimension() 2152 swap16 (&word16); in legacy_emergency_dimension() 2416 swap16 (&word16); in read_legacy_biff() 2633 swap16 (&word16); in read_legacy_biff() [all …]
|
/dports/archivers/libarchive/libarchive-3.5.2/libarchive/ |
H A D | archive_write_set_format_cpio_binary.c | 127 static uint16_t swap16(uint16_t in) { in swap16() function 159 U.s[0] = swap16(U.s[0]); in swap32() 160 U.s[1] = swap16(U.s[1]); in swap32() 429 h.h_magic = swap16(070707); in write_header() 430 h.h_dev = swap16(archive_entry_dev(entry)); in write_header() 444 h.h_ino = swap16(ino); in write_header() 463 h.h_mode = swap16(h.h_mode); in write_header() 465 h.h_uid = swap16(archive_entry_uid(entry)); in write_header() 466 h.h_gid = swap16(archive_entry_gid(entry)); in write_header() 467 h.h_nlink = swap16(archive_entry_nlink(entry)); in write_header() [all …]
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/VideoCommon/ |
H A D | TextureDecoder_Generic.cpp | 67 return DecodePixel_RGB565(Common::swap16(pixel)); in DecodePixel_Paletted() 69 return DecodePixel_RGB5A3(Common::swap16(pixel)); in DecodePixel_Paletted() 101 u16 val = Common::swap16(src[x]); in DecodeBytes_C14X2() 121 dst[x] = DecodePixel_RGB5A3(Common::swap16(src[x])); in DecodeBytes_RGB5A3() 123 dst[0] = DecodePixel_RGB5A3(Common::swap16(src[0])); in DecodeBytes_RGB5A3() 124 dst[1] = DecodePixel_RGB5A3(Common::swap16(src[1])); in DecodeBytes_RGB5A3() 125 dst[2] = DecodePixel_RGB5A3(Common::swap16(src[2])); in DecodeBytes_RGB5A3() 126 dst[3] = DecodePixel_RGB5A3(Common::swap16(src[3])); in DecodeBytes_RGB5A3() 149 u16 c1 = Common::swap16(src->color1); in DecodeDXTBlock() 150 u16 c2 = Common::swap16(src->color2); in DecodeDXTBlock() [all …]
|
/dports/net/mediastreamer/mediastreamer-2.16.1/src/audiofilters/ |
H A D | waveheader.h | 62 #ifdef swap16 65 static MS2_INLINE uint16_t swap16(uint16_t a) in swap16() function 82 #define le_uint16(a) (swap16((a))) 83 #define le_int16(a) ( (int16_t) swap16((uint16_t)((a))) )
|
/dports/net/liblinphone/linphone-3.12.0/tester/ |
H A D | audio_bypass_wav_header.h | 62 #ifdef swap16 65 static MS2_INLINE uint16_t swap16(uint16_t a) in swap16() function 82 #define le_uint16(a) (swap16((a))) 83 #define le_int16(a) ( (int16_t) swap16((uint16_t)((a))) )
|