| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | refclock_tt560.c | 183 *p_time_t = byte_swap(*tt_mem_t); in tt560_poll() 250 byte_swap(unsigned int input_num) in byte_swap() function 252 byteswap_t byte_swap; in byte_swap() local 255 byte_swap.long_word = input_num; in byte_swap() 257 temp = byte_swap.byte[3]; in byte_swap() 258 byte_swap.byte[3] = byte_swap.byte[0]; in byte_swap() 259 byte_swap.byte[0] = temp; in byte_swap() 261 temp = byte_swap.byte[2]; in byte_swap() 262 byte_swap.byte[2] = byte_swap.byte[1]; in byte_swap() 263 byte_swap.byte[1] = temp; in byte_swap() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | FileWriter.cpp | 38 const uint16_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU16() 43 const uint32_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU32() 48 const uint64_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU64() 53 const uint32_t Swapped = support::endian::byte_swap(U, ByteOrder); in fixup32()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Endian.h | 44 [[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() function 52 [[nodiscard]] inline value_type byte_swap(value_type value) { in byte_swap() function 53 return byte_swap(value, endian); in byte_swap() 65 return byte_swap<value_type>(ret, endian); in read() 92 value = byte_swap<value_type>(value, endian); in write() 123 val[0] = byte_swap<value_type, endian>(val[0]); in readAtBitAlignment() 124 val[1] = byte_swap<value_type, endian>(val[1]); in readAtBitAlignment() 158 val[0] = byte_swap<value_type, endian>(val[0]); in writeAtBitAlignment() 159 val[1] = byte_swap<value_type, endian>(val[1]); in writeAtBitAlignment() 187 val[0] = byte_swap<value_type, endian>(val[0]); in writeAtBitAlignment() [all …]
|
| H A D | EndianStream.h | 31 value_type value = byte_swap<value_type>(orig, endian); in write_array() 38 value = byte_swap<value_type>(value, endian); in write() 62 V = byte_swap<value_type>(V, E); in write()
|
| H A D | HashBuilder.h | 350 using HasByteSwapT = decltype(support::endian::byte_swap( 356 T SwappedValue = support::endian::byte_swap(Value, Endianness); in adjustForEndiannessAndAdd()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kBaseInfo.h | 85 Val = support::endian::byte_swap(Val, llvm::endianness::big); in swapWord() 89 Part = support::endian::byte_swap(Part, llvm::endianness::big); in swapWord()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMapping.h | 1049 return support::endian::byte_swap<uint64_t, Endian>(Record->FuncHash); in getFuncHash() 1055 return support::endian::byte_swap<uint32_t, Endian>(Record->DataSize); in getDataSize() 1061 return support::endian::byte_swap<uint64_t, Endian>(Record->NameRef); in getFuncNameRef() 1114 return support::endian::byte_swap<IntPtrT, Endian>(NamePtr); in getFuncNameRef() 1121 uint32_t NameS = support::endian::byte_swap<uint32_t, Endian>(NameSize); in getFuncName() 1219 return support::endian::byte_swap<uint64_t, Endian>(FilenamesRef); in getFilenamesRef() 1250 return support::endian::byte_swap<uint32_t, Endian>(NRecords); in getNRecords() 1254 return support::endian::byte_swap<uint32_t, Endian>(FilenamesSize); in getFilenamesSize() 1258 return support::endian::byte_swap<uint32_t, Endian>(CoverageSize); in getCoverageSize() 1262 return support::endian::byte_swap<uint32_t, Endian>(Version); in getVersion()
|
| /freebsd-14.2/sys/contrib/zlib/ |
| H A D | crc32.c | 113 local z_word_t byte_swap(z_word_t word) { in byte_swap() function 321 crc_big_table[i] = byte_swap(p); in make_crc_table() 537 big[w - 1 - k][i] = byte_swap(q); in braid() 880 crc0 = byte_swap(crc); in crc32_z() 980 crc = byte_swap(comb); in crc32_z()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | WindowsResourceDumper.cpp | 29 uint16_t ChValue = support::endian::byte_swap(Ch, llvm::endianness::little); in stripUTF16()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | InstrProfReader.cpp | 1121 uint64_t NFields = endian::byte_swap<uint64_t, llvm::endianness::little>( in readSummary() 1123 uint64_t NEntries = endian::byte_swap<uint64_t, llvm::endianness::little>( in readSummary() 1133 Dst[I] = endian::byte_swap<uint64_t, llvm::endianness::little>(Src[I]); in readSummary() 1190 endian::byte_swap<uint64_t, llvm::endianness::little>(Header->HashType)); in readHeader() 1195 endian::byte_swap<uint64_t, llvm::endianness::little>(Header->HashOffset); in readHeader() 1206 endian::byte_swap<uint64_t, llvm::endianness::little>( in readHeader() 1247 endian::byte_swap<uint64_t, llvm::endianness::little>( in readHeader() 1266 endian::byte_swap<uint64_t, llvm::endianness::little>( in readHeader()
|
| H A D | InstrProf.cpp | 1499 return endian::byte_swap<uint64_t, llvm::endianness::little>(Version); in formatVersion() 1512 endian::byte_swap<uint64_t, llvm::endianness::little>(H.Magic); in readFromBuffer()
|
| H A D | InstrProfWriter.cpp | 84 endian::byte_swap<uint64_t, llvm::endianness::little>(P[K].D[I]); in patch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/ |
| H A D | GOFFObjectWriter.cpp | 141 support::endian::byte_swap<value_type>(Value, llvm::endianness::big); in writebe()
|
| H A D | ELFObjectWriter.cpp | 1219 uint16_t NumSections = support::endian::byte_swap<uint16_t>( in writeObject() 1228 support::endian::byte_swap<uint64_t>(SectionHeaderOffset, W.Endian); in writeObject() 1234 support::endian::byte_swap<uint32_t>(SectionHeaderOffset, W.Endian); in writeObject()
|
| H A D | MCStreamer.cpp | 139 uint64_t Swapped = support::endian::byte_swap( in emitIntValue()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
| H A D | CoverageMappingWriter.cpp | 280 return support::endian::byte_swap<uint64_t, llvm::endianness::little>(N); in write()
|
| H A D | CoverageMappingReader.cpp | 933 support::endian::byte_swap<uint64_t, llvm::endianness::little>( in loadTestingFormat() 1200 support::endian::byte_swap<uint64_t, llvm::endianness::little>( in create()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/BTF/ |
| H A D | BTFParser.cpp | 207 using support::endian::byte_swap; in parseTypesInfo() 215 TypesBuffer32[I] = byte_swap(TypesBuffer32[I], Endianness); in parseTypesInfo()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 79 support::endian::byte_swap<uint32_t, llvm::endianness::little>(Value); in WriteWord()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 886 endian::byte_swap<uint64_t, llvm::endianness::little>(Working); in combine() 913 endian::byte_swap<uint64_t, llvm::endianness::little>(Working); in finalize()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | ELFNixPlatform.cpp | 827 support::endian::byte_swap(*Key, G.getEndianness()); in fixTLVSectionsAndEdges()
|
| H A D | MachOPlatform.cpp | 1174 support::endian::byte_swap(*Key, G.getEndianness()); in fixTLVSectionsAndEdges()
|