Home
last modified time | relevance | path

Searched refs:reverseBits (Results 1 – 16 of 16) sorted by relevance

/external/llvm/unittests/ADT/
DAPIntTest.cpp1072 TEST(APIntTest, reverseBits) { in TEST() argument
1073 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST()
1074 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST()
1076 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1077 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1079 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST()
1080 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST()
1081 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST()
1083 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST()
1084 EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits()); in TEST()
[all …]
/external/llvm/unittests/Support/
DMathExtrasTest.cpp138 TEST(MathExtras, reverseBits) { in TEST() argument
143 EXPECT_EQ(0x54ULL, reverseBits(NZ8)); in TEST()
144 EXPECT_EQ(0x5400ULL, reverseBits(NZ16)); in TEST()
145 EXPECT_EQ(0x54000000ULL, reverseBits(NZ32)); in TEST()
146 EXPECT_EQ(0x5400000000000000ULL, reverseBits(NZ64)); in TEST()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DCodeEmitterGen.h37 void reverseBits(std::vector<Record*> &Insts);
DCodeEmitterGen.cpp33 void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) { in reverseBits() function in CodeEmitterGen
215 if (Target.isLittleEndianEncoding()) reverseBits(Insts); in run()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp278 return reverseBits(Imm | RegBits) >> 22; in getSPE8DisEncoding()
294 return reverseBits(Imm | RegBits) >> 22; in getSPE4DisEncoding()
310 return reverseBits(Imm | RegBits) >> 22; in getSPE2DisEncoding()
/external/llvm/lib/Target/AMDGPU/
DSIShrinkInstructions.cpp231 int32_t ReverseImm = reverseBits<int32_t>(static_cast<int32_t>(Imm)); in runOnMachineFunction()
/external/deqp/modules/gles31/functional/
Des31fShaderIntegerFunctionTests.cpp857 static inline deUint32 reverseBits (deUint32 v) in reverseBits() function
893 const deUint32 cmpMask = reverseBits(getLowBitMask(integerLength)); in compare()
899 const deUint32 ref = reverseBits(value); in compare()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp771 APInt APInt::reverseBits() const { in reverseBits() function in APInt
774 return APInt(BitWidth, llvm::reverseBits<uint64_t>(VAL)); in reverseBits()
776 return APInt(BitWidth, llvm::reverseBits<uint32_t>(VAL)); in reverseBits()
778 return APInt(BitWidth, llvm::reverseBits<uint16_t>(VAL)); in reverseBits()
780 return APInt(BitWidth, llvm::reverseBits<uint8_t>(VAL)); in reverseBits()
/external/llvm/lib/Support/
DAPInt.cpp793 APInt APInt::reverseBits() const { in reverseBits() function in APInt
796 return APInt(BitWidth, llvm::reverseBits<uint64_t>(VAL)); in reverseBits()
798 return APInt(BitWidth, llvm::reverseBits<uint32_t>(VAL)); in reverseBits()
800 return APInt(BitWidth, llvm::reverseBits<uint16_t>(VAL)); in reverseBits()
802 return APInt(BitWidth, llvm::reverseBits<uint8_t>(VAL)); in reverseBits()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderIntegerFunctionTests.cpp229 static inline deUint32 reverseBits (deUint32 v) in reverseBits() function
1061 const deUint32 cmpMask = reverseBits(getLowBitMask(integerLength)); in compare()
1067 const deUint32 ref = reverseBits(value); in compare()
/external/llvm/include/llvm/Support/
DMathExtras.h233 T reverseBits(T Val) {
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h233 T reverseBits(T Val) {
/external/llvm/include/llvm/ADT/
DAPInt.h1461 APInt LLVM_ATTRIBUTE_UNUSED_RESULT reverseBits() const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1437 APInt reverseBits() const;
/external/deqp/framework/common/
DtcuAstcUtil.cpp72 inline deUint32 reverseBits (deUint32 src, int numBits) in reverseBits() function
283 : reverseBits(m_src.getBits(m_startNdxInSrc - high, m_startNdxInSrc - low), numBitsFromSrc); in getNext()
1710 …: m_dst.setBits(m_startNdxInSrc - high, m_startNdxInSrc - low, reverseBits(actualBits, numBitsToDs… in setNext()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1648 return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits()); in ConstantFoldScalarCall()