/external/vulkan-validation-layers/libs/glm/gtx/ |
D | inertia.inl | 17 detail::tvec3<T, P> const & Scale 21 Result[0][0] = (Scale.y * Scale.y + Scale.z * Scale.z) * Mass / T(12); 22 Result[1][1] = (Scale.x * Scale.x + Scale.z * Scale.z) * Mass / T(12); 23 Result[2][2] = (Scale.x * Scale.x + Scale.y * Scale.y) * Mass / T(12); 31 detail::tvec3<T, P> const & Scale 35 Result[0][0] = (Scale.y * Scale.y + Scale.z * Scale.z) * Mass / T(12); 36 Result[1][1] = (Scale.x * Scale.x + Scale.z * Scale.z) * Mass / T(12); 37 Result[2][2] = (Scale.x * Scale.x + Scale.y * Scale.y) * Mass / T(12);
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 53 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument 60 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded() 61 return std::make_pair(Digits, Scale); in getRounded() 65 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument 67 return getRounded(Digits, Scale, ShouldRound); in getRounded32() 71 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument 73 return getRounded(Digits, Scale, ShouldRound); in getRounded64() 81 int16_t Scale = 0) { 86 return std::make_pair(Digits, Scale); 90 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift, [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86InstrBuilder.h | 49 unsigned Scale; member 56 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(0), GVOpFlags(0) { in X86AddressMode() 62 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress() 72 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress() 125 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress() 134 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
|
D | X86ISelDAGToDAG.cpp | 63 unsigned Scale; member 76 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), in X86ISelAddressMode() 112 << " Scale" << Scale << '\n' in dump() 203 SDValue &Scale, SDValue &Index, SDValue &Disp, 206 SDValue &Scale, SDValue &Index, SDValue &Disp, 209 SDValue &Scale, SDValue &Index, SDValue &Disp, 212 SDValue &Base, SDValue &Scale, 218 SDValue &Base, SDValue &Scale, 231 SDValue &Scale, SDValue &Index, in getAddressOperands() argument 236 Scale = getI8Imm(AM.Scale); in getAddressOperands() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86InstrBuilder.h | 48 unsigned Scale; member 55 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode() 62 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress() 72 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress() 101 AM.Scale = Op.getImm(); in getAddressFromInstr() 153 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress() 162 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
|
D | X86ShuffleDecodeConstantPool.cpp | 57 int Scale = BitWidth / 8; in DecodePSHUFBMask() local 58 int NumBytes = NumElts * Scale; in DecodePSHUFBMask() 67 ShuffleMask.append(Scale, SM_SentinelUndef); in DecodePSHUFBMask() 72 for (int j = 0; j != Scale; ++j) { in DecodePSHUFBMask() 75 int Base = ((i * Scale) + j) & ~0xf; in DecodePSHUFBMask() 252 int Scale = BitWidth / 8; in DecodeVPPERMMask() local 253 int NumBytes = NumElts * Scale; in DecodeVPPERMMask() 262 ShuffleMask.append(Scale, SM_SentinelUndef); in DecodeVPPERMMask() 280 for (int j = 0; j != Scale; ++j) { in DecodeVPPERMMask()
|
D | X86ISelDAGToDAG.cpp | 61 unsigned Scale; member 75 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), in X86ISelAddressMode() 112 << " Scale" << Scale << '\n' in dump() 211 SDValue &Scale, SDValue &Index, SDValue &Disp, 214 SDValue &Scale, SDValue &Index, SDValue &Disp, 218 SDValue &Scale, SDValue &Index, SDValue &Disp, 221 SDValue &Scale, SDValue &Index, SDValue &Disp, 224 SDValue &Scale, SDValue &Index, SDValue &Disp, 227 SDValue &Base, SDValue &Scale, 233 SDValue &Base, SDValue &Scale, [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | Thumb1RegisterInfo.cpp | 143 unsigned NumBits, unsigned Scale) { in calcNumMI() argument 145 unsigned Chunk = ((1 << NumBits) - 1) * Scale; in calcNumMI() 152 Scale = 1; // Followed by a number of tADDi8. in calcNumMI() 153 Chunk = ((1 << NumBits) - 1) * Scale; in calcNumMI() 180 unsigned Scale = 1; in emitThumbRegPlusImmediate() local 188 Scale = 4; in emitThumbRegPlusImmediate() 201 Scale = 4; in emitThumbRegPlusImmediate() 214 Scale = 4; in emitThumbRegPlusImmediate() 223 unsigned NumMIs = calcNumMI(Opc, ExtraOpc, Bytes, NumBits, Scale); in emitThumbRegPlusImmediate() 253 unsigned Chunk = ((1 << NumBits) - 1) * Scale; in emitThumbRegPlusImmediate() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | AddrModeMatcher.cpp | 48 if (Scale) { in print() 50 << Scale << "*"; in print() 67 bool AddressingModeMatcher::MatchScaledValue(Value *ScaleReg, int64_t Scale, in MatchScaledValue() argument 71 if (Scale == 1) in MatchScaledValue() 75 if (Scale == 0) in MatchScaledValue() 80 if (AddrMode.Scale != 0 && AddrMode.ScaledReg != ScaleReg) in MatchScaledValue() 87 TestAddrMode.Scale += Scale; in MatchScaledValue() 104 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale; in MatchScaledValue() 209 int64_t Scale = RHS->getSExtValue(); in MatchOperationAddr() local 211 Scale = 1LL << Scale; in MatchOperationAddr() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 164 int64_t Scale; member 177 static Value *GetLinearExpression(Value *V, APInt &Scale, APInt &Offset, in GetLinearExpression() argument 184 Scale = 1; in GetLinearExpression() 200 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression() 205 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression() 208 Scale *= RHSC->getValue(); in GetLinearExpression() 211 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression() 214 Scale <<= RHSC->getValue().getLimitedValue(); in GetLinearExpression() 226 unsigned OldWidth = Scale.getBitWidth(); in GetLinearExpression() 228 Scale = Scale.trunc(SmallWidth); in GetLinearExpression() [all …]
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 183 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, in GetLinearExpression() argument 190 Scale = 1; in GetLinearExpression() 202 assert(Scale == 0 && "Constant values don't have a scale"); in GetLinearExpression() 218 Scale = 1; in GetLinearExpression() 226 Scale = 1; in GetLinearExpression() 232 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression() 237 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression() 242 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression() 245 Scale *= RHS; in GetLinearExpression() 248 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression() [all …]
|
/external/compiler-rt/lib/esan/ |
D | esan_shadow.h | 118 uptr Scale; variable 126 Scale = ShadowScale; in initialize() 127 if (Scale <= 2) in initialize() 128 Offset = OffsetArray[Scale]; in initialize() 130 Offset = OffsetArray[0] << Scale; in initialize() 159 return (((App & ShadowMapping::Mask) + Mapping.Offset) >> Mapping.Scale); in appToShadow()
|
D | esan.cpp | 104 for (int Scale = 0; Scale < 8; ++Scale) { in verifyShadowScheme() local 105 Mapping.initialize(Scale); in verifyShadowScheme() 107 VPrintf(3, "\nChecking scale %d\n", Scale); in verifyShadowScheme() 151 VPrintf(1, "Shadow scale=%d offset=%p\n", Mapping.Scale, Mapping.Offset); in initializeShadow()
|
/external/skia/include/core/ |
D | SkUnPreMultiply.h | 20 typedef uint32_t Scale; typedef 23 static const Scale* GetScaleTable() { in GetScaleTable() 27 static Scale GetScale(U8CPU alpha) { in GetScale() 45 static U8CPU ApplyScale(Scale scale, U8CPU component) { in ApplyScale()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SpillPlacement.cpp | 74 float Scale[2]; member 110 Scale[0] = Scale[1] = 0; in Node() 124 w *= Scale[out]; in addLink() 140 w *= Scale[out]; in addBias() 185 nodes[bundles->getBundle(Num, 1)].Scale[0] += Freq; in runOnMachineFunction() 186 nodes[bundles->getBundle(Num, 0)].Scale[1] += Freq; in runOnMachineFunction() 192 if (nodes[i].Scale[d] > 0) in runOnMachineFunction() 193 nodes[i].Scale[d] = 1 / nodes[i].Scale[d]; in runOnMachineFunction()
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 130 unsigned Bits, Scale; in branchMaxOffsets() local 134 Scale = 2; in branchMaxOffsets() 138 Scale = 2; in branchMaxOffsets() 142 Scale = 2; in branchMaxOffsets() 146 Scale = 2; in branchMaxOffsets() 150 Scale = 2; in branchMaxOffsets() 154 Scale = 2; in branchMaxOffsets() 158 Scale = 2; in branchMaxOffsets() 162 Scale = 2; in branchMaxOffsets() 166 Scale = 2; in branchMaxOffsets() [all …]
|
/external/webrtc/webrtc/modules/utility/source/ |
D | audio_frame_operations_unittest.cc | 157 EXPECT_EQ(-1, AudioFrameOperations::Scale(1.0, 1.0, frame_)); in TEST_F() 160 EXPECT_EQ(-1, AudioFrameOperations::Scale(1.0, 1.0, frame_)); in TEST_F() 163 EXPECT_EQ(-1, AudioFrameOperations::Scale(-1.0, 1.0, frame_)); in TEST_F() 164 EXPECT_EQ(-1, AudioFrameOperations::Scale(1.0, -1.0, frame_)); in TEST_F() 170 EXPECT_EQ(0, AudioFrameOperations::Scale(10.0, 10.0, frame_)); in TEST_F() 181 EXPECT_EQ(0, AudioFrameOperations::Scale(2.0, 3.0, frame_)); in TEST_F()
|
/external/clang/test/CodeGenCXX/ |
D | pragma-loop.cpp | 134 const int Scale = 4; in for_template_constant_expression_test() local 135 #pragma clang loop vectorize_width(Scale * V) interleave_count(Scale * I) unroll_count(Scale * U) in for_template_constant_expression_test() 141 #pragma clang loop vectorize_width((Scale * V) + 2) in for_template_constant_expression_test()
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 205 bool HasBaseReg, int64_t Scale, in isLegalAddressingMode() argument 209 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); in isLegalAddressingMode() 221 bool HasBaseReg, int64_t Scale, unsigned AddrSpace) { in getScalingFactorCost() argument 224 Scale, AddrSpace)) in getScalingFactorCost() 448 int64_t Scale = 0; in getGEPCost() local 467 if (Scale != 0) in getGEPCost() 470 Scale = ElementSize; in getGEPCost() 483 BaseOffset, HasBaseReg, Scale, AS)) { in getGEPCost()
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86Operand.h | 57 unsigned Scale; member 125 return Mem.Scale; in getMemScale() 505 Res->Mem.Scale = 1; 517 unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, 525 assert(((Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8)) && 532 Res->Mem.Scale = Scale;
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_scaledrenderbuffer.cpp | 43 m_Matrix.Scale((FX_FLOAT)(max_dpi) / dpih, 1.0f); in Initialize() 45 m_Matrix.Scale(1.0f, (FX_FLOAT)(max_dpi) / (FX_FLOAT)dpiv); in Initialize() 68 m_Matrix.Scale(0.5f, 0.5f); in Initialize()
|
/external/llvm/lib/Support/ |
D | BranchProbability.cpp | 54 int Scale = 0; in getBranchProbability() local 57 Scale++; in getBranchProbability() 59 return BranchProbability(Numerator >> Scale, Denominator); in getBranchProbability()
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | AddrModeMatcher.h | 46 (HasBaseReg == O.HasBaseReg) && (Scale == O.Scale); 97 bool MatchScaledValue(Value *ScaleReg, int64_t Scale, unsigned Depth);
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 256 int64_t Scale; member 280 : BaseGV(nullptr), BaseOffset(0), HasBaseReg(false), Scale(0), in Formula() 385 return Scale != 1 || !BaseRegs.empty(); in isCanonical() 404 Scale = 1; in canonicalize() 417 if (Scale != 1) in unscale() 419 Scale = 0; in unscale() 487 if (Scale != 0) { in print() 489 OS << Scale << "*reg("; in print() 1009 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula() 1359 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument [all …]
|
/external/llvm/lib/Target/AArch64/InstPrinter/ |
D | AArch64InstPrinter.h | 97 void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, 99 void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, 102 template <int Scale> 105 printUImm12Offset(MI, OpNum, Scale, O); in printUImm12Offset() 117 template <int Scale>
|