Home
last modified time | relevance | path

Searched refs:Scale (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/external/icu/icu4c/source/i18n/
Dnumber_multiplier.cpp25 Scale::Scale(int32_t magnitude, DecNum* arbitraryToAdopt) in Scale() function in Scale
40 Scale::Scale(const Scale& other) in Scale() function in Scale
48 Scale& Scale::operator=(const Scale& other) { in operator =()
61 Scale::Scale(Scale&& src) U_NOEXCEPT in Scale() function in Scale
67 Scale& Scale::operator=(Scale&& src) U_NOEXCEPT { in operator =()
79 Scale::~Scale() { in ~Scale()
84 Scale Scale::none() { in none()
88 Scale Scale::powerOfTen(int32_t power) { in powerOfTen()
92 Scale Scale::byDecimal(StringPiece multiplicand) { in byDecimal()
105 Scale Scale::byDouble(double multiplicand) { in byDouble()
[all …]
Dnumber_multiplier.h25 void setAndChain(const Scale& multiplier, const MicroPropsGenerator* parent);
31 Scale fMultiplier;
37 static inline Scale scaleFromProperties(const DecimalFormatProperties& properties) { in scaleFromProperties()
41 return Scale::byDoubleAndPowerOfTen(arbitraryMultiplier, magnitudeMultiplier); in scaleFromProperties()
43 return Scale::powerOfTen(magnitudeMultiplier); in scaleFromProperties()
45 return Scale::byDouble(arbitraryMultiplier); in scaleFromProperties()
47 return Scale::none(); in scaleFromProperties()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScale.java21 public class Scale { class
23 private static final Scale DEFAULT = new Scale(0, null);
24 private static final Scale HUNDRED = new Scale(2, null);
25 private static final Scale THOUSAND = new Scale(3, null);
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() method in Scale
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() method in Scale
72 public static Scale none() { in none()
86 public static Scale powerOfTen(int power) { in powerOfTen()
94 return new Scale(power, null); in powerOfTen()
106 public static Scale byBigDecimal(BigDecimal multiplicand) { in byBigDecimal()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScale.java21 public class Scale { class
23 private static final Scale DEFAULT = new Scale(0, null);
24 private static final Scale HUNDRED = new Scale(2, null);
25 private static final Scale THOUSAND = new Scale(3, null);
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() method in Scale
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() method in Scale
73 public static Scale none() { in none()
88 public static Scale powerOfTen(int power) { in powerOfTen()
96 return new Scale(power, null); in powerOfTen()
109 public static Scale byBigDecimal(BigDecimal multiplicand) { in byBigDecimal()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h53 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/llvm-project/llvm/include/llvm/Support/
DScaledNumber.h52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument
59 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded()
60 return std::make_pair(Digits, Scale); in getRounded()
64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument
66 return getRounded(Digits, Scale, ShouldRound); in getRounded32()
70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument
72 return getRounded(Digits, Scale, ShouldRound); in getRounded64()
80 int16_t Scale = 0) {
85 return std::make_pair(Digits, Scale);
89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DScaledNumber.h52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument
59 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded()
60 return std::make_pair(Digits, Scale); in getRounded()
64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument
66 return getRounded(Digits, Scale, ShouldRound); in getRounded32()
70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument
72 return getRounded(Digits, Scale, ShouldRound); in getRounded64()
80 int16_t Scale = 0) {
85 return std::make_pair(Digits, Scale);
89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DTimeSubtractionCheck.cpp99 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse(TimeInverse); in registerMatchers() local
100 assert(Scale && "Unknown scale encountered"); in registerMatchers()
113 callee(functionDecl(hasName(getDurationFactoryForScale(*Scale)))), in registerMatchers()
137 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse(InverseName); in check() local
138 if (!Scale) in check()
154 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + " - " + in check()
155 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) + in check()
165 getDurationFactoryForScale(*Scale))))) in check()
179 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + in check()
181 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) + in check()
[all …]
DDurationRewriter.cpp21 unsigned operator()(DurationScale Scale) const { in operator ()()
22 return static_cast<unsigned>(Scale); in operator ()()
40 getDurationInverseForScale(DurationScale Scale) { in getDurationInverseForScale() argument
65 return InverseMap[Scale]; in getDurationInverseForScale()
72 DurationScale Scale, const Expr &Node) { in rewriteInverseDurationCall() argument
74 getDurationInverseForScale(Scale); in rewriteInverseDurationCall()
91 DurationScale Scale, const Expr &Node) { in rewriteInverseTimeCall() argument
92 llvm::StringRef InverseFunction = getTimeInverseForScale(Scale); in rewriteInverseTimeCall()
104 llvm::StringRef getDurationFactoryForScale(DurationScale Scale) { in getDurationFactoryForScale() argument
105 switch (Scale) { in getDurationFactoryForScale()
[all …]
DDurationAdditionCheck.cpp41 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse( in check() local
43 if (!Scale) in check()
46 llvm::StringRef TimeFactory = getTimeInverseForScale(*Scale); in check()
54 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()) + ")") in check()
62 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()) + in check()
DTimeComparisonCheck.cpp34 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse( in check() local
36 if (!Scale) in check()
47 rewriteExprFromNumberToTime(Result, *Scale, Binop->getLHS()); in check()
49 rewriteExprFromNumberToTime(Result, *Scale, Binop->getRHS()); in check()
DDurationComparisonCheck.cpp33 llvm::Optional<DurationScale> Scale = getScaleForDurationInverse( in check() local
35 if (!Scale) in check()
45 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()); in check()
47 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()); in check()
/external/llvm/lib/Target/X86/
DX86InstrBuilder.h48 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()
/external/icu/libicu/cts_headers/
Dnumber_multiplier.h25 void setAndChain(const Scale& multiplier, const MicroPropsGenerator* parent);
31 Scale fMultiplier;
37 static inline Scale scaleFromProperties(const DecimalFormatProperties& properties) { in scaleFromProperties()
41 return Scale::byDoubleAndPowerOfTen(arbitraryMultiplier, magnitudeMultiplier); in scaleFromProperties()
43 return Scale::powerOfTen(magnitudeMultiplier); in scaleFromProperties()
45 return Scale::byDouble(arbitraryMultiplier); in scaleFromProperties()
47 return Scale::none(); in scaleFromProperties()
/external/llvm-project/llvm/lib/Target/X86/
DX86InstrBuilder.h53 unsigned Scale; member
60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
66 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress()
76 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
105 AM.Scale = Op1.getImm(); in getAddressFromInstr()
174 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress()
183 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrBuilder.h53 unsigned Scale; member
60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
66 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress()
76 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
105 AM.Scale = Op1.getImm(); in getAddressFromInstr()
174 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress()
183 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
/external/llvm-project/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp236 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, in GetLinearExpression() argument
243 Scale = 1; in GetLinearExpression()
255 assert(Scale == 0 && "Constant values don't have a scale"); in GetLinearExpression()
270 Scale = 1; in GetLinearExpression()
278 Scale = 1; in GetLinearExpression()
284 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
289 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
294 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
297 Scale *= RHS; in GetLinearExpression()
300 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DAPFixedPoint.h35 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, in FixedPointSemantics() argument
37 : Width(Width), Scale(Scale), IsSigned(IsSigned), in FixedPointSemantics()
39 assert(Width >= Scale && "Not enough room for the scale"); in FixedPointSemantics()
45 unsigned getScale() const { return Scale; } in getScale()
57 return Width - Scale - 1; in getIntegralBits()
59 return Width - Scale; in getIntegralBits()
88 unsigned Scale : 13; variable
/external/compiler-rt/lib/esan/
Desan_shadow.h118 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()
/external/skia/include/core/
DSkUnPreMultiply.h20 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/skqp/include/core/
DSkUnPreMultiply.h20 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/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp183 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/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp279 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, in GetLinearExpression() argument
286 Scale = 1; in GetLinearExpression()
298 assert(Scale == 0 && "Constant values don't have a scale"); in GetLinearExpression()
313 Scale = 1; in GetLinearExpression()
321 Scale = 1; in GetLinearExpression()
327 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
332 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
337 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
340 Scale *= RHS; in GetLinearExpression()
343 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, in GetLinearExpression()
[all …]
/external/webrtc/modules/desktop_capture/
Ddesktop_geometry_unittest.cc69 TEST(DesktopRectTest, Scale) { in TEST() argument
71 rect.Scale(1.1, 1.1); in TEST()
78 rect.Scale(0.01, 0.01); in TEST()
85 rect.Scale(1.1, 0.9); in TEST()
92 rect.Scale(1.1, 1.1); in TEST()
99 rect.Scale(1.1, 1.1); in TEST()
/external/libchrome/ui/gfx/geometry/
Dpoint3_unittest.cc50 TEST(Point3Test, Scale) { in TEST() argument
61 zero.Scale(2.f); in TEST()
62 zero.Scale(6.f, 3.f, 1.5f); in TEST()
66 point.Scale(2.f); in TEST()
67 point.Scale(6.f, 3.f, 1.5f); in TEST()

12345678910>>...29