Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 25 of 154) sorted by relevance

1234567

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DCompactData.java99 byte magnitude = (byte) (magnitudeEntry.getKey().length() - 1); in populate()
103 patterns[getIndex(magnitude, plural)] = patternString; in populate()
107 multipliers[magnitude] = (byte) (numZeros - magnitude - 1); in populate()
108 if (magnitude > largestMagnitude) { in populate()
109 largestMagnitude = magnitude; in populate()
118 public int getMultiplier(int magnitude) { in getMultiplier() argument
119 if (magnitude < 0) { in getMultiplier()
122 if (magnitude > largestMagnitude) { in getMultiplier()
123 magnitude = largestMagnitude; in getMultiplier()
125 return multipliers[magnitude]; in getMultiplier()
[all …]
DDecimalQuantity_AbstractBCD.java149 int magnitude = getMagnitude(); in applyMaxInteger() local
150 if (maxInt <= magnitude) { in applyMaxInteger()
151 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
267 int magnitude = scale + precision; in getUpperDisplayMagnitude() local
268 int result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude()
278 int magnitude = scale; in getLowerDisplayMagnitude() local
279 int result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude()
284 public byte getDigit(int magnitude) { in getDigit() argument
289 return getDigitPos(magnitude - scale); in getDigit()
584 for (int magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong()
[all …]
DPatternStringUtils.java134 for (int magnitude = m0; magnitude >= mN; magnitude--) { in propertiesToPatternString()
135 int di = digitsString.length() + digitsStringScale - magnitude - 1; in propertiesToPatternString()
142 if (magnitude == 0 && (alwaysShowDecimal || mN < 0)) { in propertiesToPatternString()
149 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
153 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DCompactData.java104 byte magnitude = (byte) (magnitudeEntry.getKey().length() - 1); in populate()
108 patterns[getIndex(magnitude, plural)] = patternString; in populate()
112 multipliers[magnitude] = (byte) (numZeros - magnitude - 1); in populate()
113 if (magnitude > largestMagnitude) { in populate()
114 largestMagnitude = magnitude; in populate()
123 public int getMultiplier(int magnitude) { in getMultiplier() argument
124 if (magnitude < 0) { in getMultiplier()
127 if (magnitude > largestMagnitude) { in getMultiplier()
128 magnitude = largestMagnitude; in getMultiplier()
130 return multipliers[magnitude]; in getMultiplier()
[all …]
DDecimalQuantity_AbstractBCD.java151 int magnitude = getMagnitude(); in applyMaxInteger() local
152 if (maxInt <= magnitude) { in applyMaxInteger()
153 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
269 int magnitude = scale + precision; in getUpperDisplayMagnitude() local
270 int result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude()
280 int magnitude = scale; in getLowerDisplayMagnitude() local
281 int result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude()
286 public byte getDigit(int magnitude) { in getDigit() argument
291 return getDigitPos(magnitude - scale); in getDigit()
586 for (int magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong()
[all …]
DPatternStringUtils.java136 for (int magnitude = m0; magnitude >= mN; magnitude--) { in propertiesToPatternString()
137 int di = digitsString.length() + digitsStringScale - magnitude - 1; in propertiesToPatternString()
144 if (magnitude == 0 && (alwaysShowDecimal || mN < 0)) { in propertiesToPatternString()
151 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
155 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DDecimalQuantity.java80 public void roundToNickel(int magnitude, MathContext mathContext); in roundToNickel() argument
174 public byte getDigit(int magnitude); in getDigit() argument
/external/icu/icu4c/source/i18n/
Dnumber_compact.cpp37 int32_t getIndex(int32_t magnitude, StandardPlural::Form plural) { in getIndex() argument
38 return magnitude * StandardPlural::COUNT + plural; in getIndex()
97 int32_t CompactData::getMultiplier(int32_t magnitude) const { in getMultiplier()
98 if (magnitude < 0) { in getMultiplier()
101 if (magnitude > largestMagnitude) { in getMultiplier()
102 magnitude = largestMagnitude; in getMultiplier()
104 return multipliers[magnitude]; in getMultiplier()
107 const UChar *CompactData::getPattern(int32_t magnitude, StandardPlural::Form plural) const { in getPattern() argument
108 if (magnitude < 0) { in getPattern()
111 if (magnitude > largestMagnitude) { in getPattern()
[all …]
Dnumber_decimalquantity.cpp168 int32_t magnitude = getMagnitude(); in applyMaxInteger() local
169 if (maxInt <= magnitude) { in applyMaxInteger()
170 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
286 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local
287 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude()
296 int32_t magnitude = scale; in getLowerDisplayMagnitude() local
297 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude()
301 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit()
306 return getDigitPos(magnitude - scale); in getDigit()
528 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local
[all …]
Dnumber_rounding.cpp36 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getRoundingMagnitudeSignificant() local
37 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant()
48 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getDisplayMagnitudeSignificant() local
49 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant()
313 int magnitude = input.getMagnitude(); in chooseMultiplierAndApply() local
314 int multiplier = producer.getMultiplier(magnitude); in chooseMultiplierAndApply()
325 if (input.getMagnitude() == magnitude + multiplier) { in chooseMultiplierAndApply()
332 int _multiplier = producer.getMultiplier(magnitude + 1); in chooseMultiplierAndApply()
Dnumber_decimalquantity.h100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
226 int8_t getDigit(int32_t magnitude) const;
378 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
Dnumber_scientific.cpp156 int32_t ScientificHandler::getMultiplier(int32_t magnitude) const { in getMultiplier()
167 digitsShown = ((magnitude % interval + interval) % interval) + 1; in getMultiplier()
169 return digitsShown - magnitude - 1; in getMultiplier()
/external/replicaisland/src/com/replica/replicaisland/
DVector2.java55 public final void multiply(float magnitude) { in multiply() argument
56 x *= magnitude; in multiply()
57 y *= magnitude; in multiply()
65 public final void divide(float magnitude) { in divide() argument
66 if (magnitude != 0.0f) { in divide()
67 x /= magnitude; in divide()
68 y /= magnitude; in divide()
101 final float magnitude = length(); in normalize() local
104 if (magnitude != 0.0f) { in normalize()
105 x /= magnitude; in normalize()
[all …]
DInputButton.java26 public void press(float currentTime, float magnitude) { in press() argument
31 mMagnitude = magnitude; in press()
56 float magnitude = 0.0f; in getMagnitude() local
58 magnitude = mMagnitude; in getMagnitude()
60 return magnitude; in getMagnitude()
63 public final void setMagnitude(float magnitude) { in setMagnitude() argument
64 mMagnitude = magnitude; in setMagnitude()
DInputTouchScreen.java64 float magnitude = 0.0f; in getX() local
66 magnitude = mTouchPoints[index].getX(); in getX()
68 return magnitude; in getX()
72 float magnitude = 0.0f; in getY() local
74 magnitude = mTouchPoints[index].getY(); in getY()
76 return magnitude; in getY()
DInputGameInterface.java104 … final float magnitude = magnitudeRamp * Utils.sign(offset) * SLIDER_FILTER * mMovementSensitivity; in update() local
106 mDirectionalPad.press(gameTime, magnitude, 0.0f); in update()
259 private float filterOrientationForMovement(float magnitude) { in filterOrientationForMovement() argument
260 float scaledMagnitude = magnitude * mOrientationSensitivityFactor; in filterOrientationForMovement()
265 private float deadZoneFilter(float magnitude, float min, float max, float scale) { in deadZoneFilter() argument
266 float smoothedMagnatude = magnitude; in deadZoneFilter()
267 if (Math.abs(magnitude) < min) { in deadZoneFilter()
269 } else if (Math.abs(magnitude) < max) { in deadZoneFilter()
/external/caliper/caliper/src/main/java/com/google/caliper/model/
DValue.java39 private double magnitude; field in Value
45 this.magnitude = 0.0; in Value()
50 this.magnitude = value; in Value()
58 public double magnitude() { in magnitude() method in Value
59 return magnitude; in magnitude()
67 return this.magnitude == that.magnitude in equals()
75 return Objects.hashCode(magnitude, unit); in hashCode()
79 return new StringBuilder().append(magnitude).append(unit).toString(); in toString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScale.java30 final int magnitude; field in Scale
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() argument
36 this(magnitude, arbitrary, RoundingUtils.DEFAULT_MATH_CONTEXT_34_DIGITS); in Scale()
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() argument
49 magnitude -= arbitrary.scale(); in Scale()
54 this.magnitude = magnitude; in Scale()
157 return magnitude != 0 || arbitrary != null; in isValid()
170 return new Scale(magnitude, arbitrary, mc); in withMathContext()
179 quantity.adjustMagnitude(magnitude); in applyTo()
191 quantity.adjustMagnitude(-magnitude); in applyReciprocalTo()
DCompactNotation.java125 int magnitude; in processQuantity() local
127 magnitude = 0; in processQuantity()
131 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity()
132 magnitude -= multiplier; in processQuantity()
136 String patternString = data.getPattern(magnitude, plural); in processQuantity()
DPrecision.java518 int magnitude = input.getMagnitude(); in chooseMultiplierAndApply() local
519 int multiplier = producer.getMultiplier(magnitude); in chooseMultiplierAndApply()
530 if (input.getMagnitude() == magnitude + multiplier) { in chooseMultiplierAndApply()
537 int _multiplier = producer.getMultiplier(magnitude + 1); in chooseMultiplierAndApply()
799 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getRoundingMagnitudeSignificant() local
800 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant()
811 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getDisplayMagnitudeSignificant() local
812 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScale.java30 final int magnitude; field in Scale
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() argument
36 this(magnitude, arbitrary, RoundingUtils.DEFAULT_MATH_CONTEXT_34_DIGITS); in Scale()
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() argument
49 magnitude -= arbitrary.scale(); in Scale()
54 this.magnitude = magnitude; in Scale()
152 return magnitude != 0 || arbitrary != null; in isValid()
165 return new Scale(magnitude, arbitrary, mc); in withMathContext()
174 quantity.adjustMagnitude(magnitude); in applyTo()
186 quantity.adjustMagnitude(-magnitude); in applyReciprocalTo()
DCompactNotation.java125 int magnitude; in processQuantity() local
127 magnitude = 0; in processQuantity()
131 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity()
132 magnitude -= multiplier; in processQuantity()
136 String patternString = data.getPattern(magnitude, plural); in processQuantity()
DPrecision.java506 int magnitude = input.getMagnitude(); in chooseMultiplierAndApply() local
507 int multiplier = producer.getMultiplier(magnitude); in chooseMultiplierAndApply()
518 if (input.getMagnitude() == magnitude + multiplier) { in chooseMultiplierAndApply()
525 int _multiplier = producer.getMultiplier(magnitude + 1); in chooseMultiplierAndApply()
787 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getRoundingMagnitudeSignificant() local
788 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant()
799 int magnitude = value.isZeroish() ? 0 : value.getMagnitude(); in getDisplayMagnitudeSignificant() local
800 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant()
/external/tensorflow/tensorflow/core/kernels/
Drandom_poisson_op_test.cc38 Tensor VecLam32(int64 n, int magnitude) { in VecLam32() argument
44 lams.vec<float>()(i) = magnitude * (1 + dist(gen)); in VecLam32()
49 Tensor VecLam64(int64 n, int magnitude) { in VecLam64() argument
55 lams.vec<double>()(i) = magnitude * (1 + dist(gen)); in VecLam64()
/external/clang/test/Sema/
Doverloadable.c58 double magnitude(DoubleVec) __attribute__((__overloadable__));
59 double magnitude(IntVec) __attribute__((__overloadable__));
61 return magnitude(d) * magnitude(d); in test_p6600()

1234567