Home
last modified time | relevance | path

Searched refs:PowerOfTwo (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp281 unsigned &PowerOfTwo, SDValue &NewMulConst) const;
494 unsigned &PowerOfTwo, in canExtractShiftFromMul() argument
512 PowerOfTwo = MaxShift; in canExtractShiftFromMul()
513 while ((MulConstVal % (1 << PowerOfTwo)) != 0) { in canExtractShiftFromMul()
514 --PowerOfTwo; in canExtractShiftFromMul()
515 if (PowerOfTwo == 0) return false; in canExtractShiftFromMul()
519 unsigned NewMulConstVal = MulConstVal / (1 << PowerOfTwo); in canExtractShiftFromMul()
541 unsigned PowerOfTwo = 0; in SelectImmShifterOperand() local
543 if (canExtractShiftFromMul(N, 31, PowerOfTwo, NewMulConst)) { in SelectImmShifterOperand()
548 PowerOfTwo), in SelectImmShifterOperand()
[all …]
/external/libchrome/base/
Dbits_unittest.cc173 TEST(BitsTest, PowerOfTwo) { in TEST() argument
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp257 unsigned &PowerOfTwo, SDValue &NewMulConst) const;
472 unsigned &PowerOfTwo, in canExtractShiftFromMul() argument
490 PowerOfTwo = MaxShift; in canExtractShiftFromMul()
491 while ((MulConstVal % (1 << PowerOfTwo)) != 0) { in canExtractShiftFromMul()
492 --PowerOfTwo; in canExtractShiftFromMul()
493 if (PowerOfTwo == 0) return false; in canExtractShiftFromMul()
497 unsigned NewMulConstVal = MulConstVal / (1 << PowerOfTwo); in canExtractShiftFromMul()
519 unsigned PowerOfTwo = 0; in SelectImmShifterOperand() local
521 if (canExtractShiftFromMul(N, 31, PowerOfTwo, NewMulConst)) { in SelectImmShifterOperand()
527 ARM_AM::getSORegOpc(ARM_AM::lsl, PowerOfTwo), Loc, MVT::i32); in SelectImmShifterOperand()
[all …]
/external/clang/lib/ARCMigrate/
DObjCMT.cpp802 bool PowerOfTwo = true; in UseNSOptionsMacro() local
808 PowerOfTwo = false; in UseNSOptionsMacro()
818 if (PowerOfTwo && EnumVal) { in UseNSOptionsMacro()
820 PowerOfTwo = false; in UseNSOptionsMacro()
838 return AllHexdecimalEnumerator || (PowerOfTwo && (MaxPowerOfTwoVal > 2)); in UseNSOptionsMacro()
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX86BaseImpl.h5655 SizeT PowerOfTwo = 0;
5659 PowerOfTwo += MultConst->getValue();
5665 PowerOfTwo += MultConst->getValue();
5668 ZeroesAvailable = llvm::Log2_32(PowerOfTwo) + 1;