Home
last modified time | relevance | path

Searched refs:getSwappedBytes (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/gnu/llvm/compiler-rt/lib/orc/tests/unit/
H A Dendian_test.cpp38 EXPECT_EQ(original_uint8, getSwappedBytes(getSwappedBytes(original_uint8))); in TEST()
42 getSwappedBytes(getSwappedBytes(original_uint16))); in TEST()
46 getSwappedBytes(getSwappedBytes(original_uint32))); in TEST()
50 getSwappedBytes(getSwappedBytes(original_uint64))); in TEST()
62 EXPECT_EQ(original_int8, getSwappedBytes(getSwappedBytes(original_int8))); in TEST()
65 EXPECT_EQ(original_int16, getSwappedBytes(getSwappedBytes(original_int16))); in TEST()
68 EXPECT_EQ(original_int32, getSwappedBytes(getSwappedBytes(original_int32))); in TEST()
71 EXPECT_EQ(original_int64, getSwappedBytes(getSwappedBytes(original_int64))); in TEST()
77 EXPECT_EQ(original_int8, getSwappedBytes(getSwappedBytes(original_int8))); in TEST()
80 EXPECT_EQ(original_int16, getSwappedBytes(getSwappedBytes(original_int16))); in TEST()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DSwapByteOrder.h69 inline unsigned char getSwappedBytes(unsigned char C) { return llvm::byteswap(C); } in getSwappedBytes() function
70 inline signed char getSwappedBytes( signed char C) { return llvm::byteswap(C); } in getSwappedBytes() function
71 inline char getSwappedBytes( char C) { return llvm::byteswap(C); } in getSwappedBytes() function
73 inline unsigned short getSwappedBytes(unsigned short C) { return llvm::byteswap(C); } in getSwappedBytes() function
74 inline signed short getSwappedBytes( signed short C) { return llvm::byteswap(C); } in getSwappedBytes() function
76 inline unsigned int getSwappedBytes(unsigned int C) { return llvm::byteswap(C); } in getSwappedBytes() function
77 inline signed int getSwappedBytes( signed int C) { return llvm::byteswap(C); } in getSwappedBytes() function
79 inline unsigned long getSwappedBytes(unsigned long C) { return llvm::byteswap(C); } in getSwappedBytes() function
80 inline signed long getSwappedBytes( signed long C) { return llvm::byteswap(C); } in getSwappedBytes() function
82 inline unsigned long long getSwappedBytes(unsigned long long C) { return llvm::byteswap(C); } in getSwappedBytes() function
[all …]
H A DDataExtractor.h37 inline uint24_t getSwappedBytes(uint24_t C) { in getSwappedBytes() function
/openbsd-src/gnu/llvm/compiler-rt/lib/orc/
H A Dendianness.h101 inline unsigned char getSwappedBytes(unsigned char C) { return C; } in getSwappedBytes() function
102 inline signed char getSwappedBytes(signed char C) { return C; } in getSwappedBytes() function
103 inline char getSwappedBytes(char C) { return C; } in getSwappedBytes() function
105 inline unsigned short getSwappedBytes(unsigned short C) { in getSwappedBytes() function
108 inline signed short getSwappedBytes(signed short C) { return ByteSwap_16(C); } in getSwappedBytes() function
110 inline unsigned int getSwappedBytes(unsigned int C) { return ByteSwap_32(C); } in getSwappedBytes() function
111 inline signed int getSwappedBytes(signed int C) { return ByteSwap_32(C); } in getSwappedBytes() function
113 inline unsigned long getSwappedBytes(unsigned long C) { in getSwappedBytes() function
118 inline signed long getSwappedBytes(signed long C) { in getSwappedBytes() function
124 inline unsigned long long getSwappedBytes(unsigned long long C) { in getSwappedBytes() function
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/
H A DInstrProfCorrelator.h151 return Ctx->ShouldSwapBytes ? sys::getSwappedBytes(Value) : Value;
H A DInstrProfReader.h371 return ShouldSwapBytes ? sys::getSwappedBytes(Int) : Int; in swap()
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DHeaderMap.cpp92 ? llvm::sys::getSwappedBytes(Header->NumBuckets) in checkHeader()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DSHA1.cpp273 HashResult[i] = sys::getSwappedBytes(InternalState.State[i]); in final()
H A DSHA256.cpp253 HashResult[i] = sys::getSwappedBytes(InternalState.State[i]); in final()
/openbsd-src/gnu/llvm/llvm/lib/ProfileData/
H A DInstrProfReader.cpp413 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()