/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | CompactData.java | 104 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 …]
|
D | DecimalQuantity_AbstractBCD.java | 159 int magnitude = getMagnitude(); in applyMaxInteger() local 160 if (maxInt <= magnitude) { in applyMaxInteger() 161 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 289 int magnitude = scale + precision; in getUpperDisplayMagnitude() local 290 int result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 300 int magnitude = scale; in getLowerDisplayMagnitude() local 301 int result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 306 public byte getDigit(int magnitude) { in getDigit() argument 311 return getDigitPos(magnitude - scale); in getDigit() 624 for (int magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() [all …]
|
D | PatternStringUtils.java | 152 for (int magnitude = m0; magnitude >= mN; magnitude--) { in propertiesToPatternString() 153 int di = digitsString.length() + digitsStringScale - magnitude - 1; in propertiesToPatternString() 160 if (magnitude == 0 && (alwaysShowDecimal || mN < 0)) { in propertiesToPatternString() 167 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString() 171 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | CompactData.java | 100 byte magnitude = (byte) (magnitudeEntry.getKey().length() - 1); in populate() 105 patterns[getIndex(magnitude, plural)] = patternString; in populate() 109 multipliers[magnitude] = (byte) (numZeros - magnitude - 1); in populate() 110 if (magnitude > largestMagnitude) { in populate() 111 largestMagnitude = magnitude; in populate() 120 public int getMultiplier(int magnitude) { in getMultiplier() argument 121 if (magnitude < 0) { in getMultiplier() 124 if (magnitude > largestMagnitude) { in getMultiplier() 125 magnitude = largestMagnitude; in getMultiplier() 127 return multipliers[magnitude]; in getMultiplier() [all …]
|
D | DecimalQuantity_AbstractBCD.java | 157 int magnitude = getMagnitude(); in applyMaxInteger() local 158 if (maxInt <= magnitude) { in applyMaxInteger() 159 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 295 int magnitude = scale + precision; in getUpperDisplayMagnitude() local 296 int result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 306 int magnitude = scale; in getLowerDisplayMagnitude() local 307 int result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 312 public byte getDigit(int magnitude) { in getDigit() argument 317 return getDigitPos(magnitude - scale); in getDigit() 622 for (int magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() [all …]
|
D | PatternStringUtils.java | 147 for (int magnitude = m0; magnitude >= mN; magnitude--) { in propertiesToPatternString() 148 int di = digitsString.length() + digitsStringScale - magnitude - 1; in propertiesToPatternString() 155 if (magnitude == 0 && (alwaysShowDecimal || mN < 0)) { in propertiesToPatternString() 162 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString() 166 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_compact.cpp | 37 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 …]
|
D | number_decimalquantity.cpp | 272 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local 273 int32_t result = (lReqPos > magnitude) ? lReqPos : (lOptPos < magnitude) ? lOptPos : magnitude; in getUpperDisplayMagnitude() 282 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 283 int32_t result = (rReqPos < magnitude) ? rReqPos : (rOptPos > magnitude) ? rOptPos : magnitude; in getLowerDisplayMagnitude() 287 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit() 292 return getDigitPos(magnitude - scale); in getDigit() 508 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local 509 result = result * 10 + getDigitPos(magnitude - scale); in toLong() 519 int32_t magnitude = -1; in toFractionLong() local 524 for (; magnitude >= lowerMagnitude && result <= 1e18L; magnitude--) { in toFractionLong() [all …]
|
D | number_rounding.cpp | 36 int magnitude = value.isZero() ? 0 : value.getMagnitude(); in getRoundingMagnitudeSignificant() local 37 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant() 48 int magnitude = value.isZero() ? 0 : value.getMagnitude(); in getDisplayMagnitudeSignificant() local 49 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant() 299 int magnitude = input.getMagnitude(); in chooseMultiplierAndApply() local 300 int multiplier = producer.getMultiplier(magnitude); in chooseMultiplierAndApply() 311 if (input.getMagnitude() == magnitude + multiplier) { in chooseMultiplierAndApply() 318 int _multiplier = producer.getMultiplier(magnitude + 1); in chooseMultiplierAndApply()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_compact.cpp | 37 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() 108 int32_t magnitude, in getPattern() argument 111 if (magnitude < 0) { in getPattern() 114 if (magnitude > largestMagnitude) { in getPattern() [all …]
|
D | number_decimalquantity.cpp | 170 int32_t magnitude = getMagnitude(); in applyMaxInteger() local 171 if (maxInt <= magnitude) { in applyMaxInteger() 172 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 306 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local 307 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 316 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 317 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 321 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit() 326 return getDigitPos(magnitude - scale); in getDigit() 561 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_compact.cpp | 37 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() 108 int32_t magnitude, in getPattern() argument 111 if (magnitude < 0) { in getPattern() 114 if (magnitude > largestMagnitude) { in getPattern() [all …]
|
D | number_decimalquantity.cpp | 170 int32_t magnitude = getMagnitude(); in applyMaxInteger() local 171 if (maxInt <= magnitude) { in applyMaxInteger() 172 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 301 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local 302 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 311 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 312 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 316 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit() 321 return getDigitPos(magnitude - scale); in getDigit() 552 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | number_compact.cpp | 37 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() 108 int32_t magnitude, in getPattern() argument 111 if (magnitude < 0) { in getPattern() 114 if (magnitude > largestMagnitude) { in getPattern() [all …]
|
D | number_decimalquantity.cpp | 170 int32_t magnitude = getMagnitude(); in applyMaxInteger() local 171 if (maxInt <= magnitude) { in applyMaxInteger() 172 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger() 301 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local 302 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 311 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 312 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 316 int8_t DecimalQuantity::getDigit(int32_t magnitude) const { in getDigit() 321 return getDigitPos(magnitude - scale); in getDigit() 552 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Scale.java | 30 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()
|
D | CompactNotation.java | 129 int magnitude; in processQuantity() local 132 magnitude = 0; in processQuantity() 136 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity() 137 magnitude -= multiplier; in processQuantity() 140 String patternString = data.getPattern(magnitude, rules, quantity); in processQuantity()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | Scale.java | 31 final int magnitude; field in Scale 36 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() argument 37 this(magnitude, arbitrary, RoundingUtils.DEFAULT_MATH_CONTEXT_34_DIGITS); in Scale() 40 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() argument 50 magnitude -= arbitrary.scale(); in Scale() 55 this.magnitude = magnitude; in Scale() 153 return magnitude != 0 || arbitrary != null; in isValid() 166 return new Scale(magnitude, arbitrary, mc); in withMathContext() 175 quantity.adjustMagnitude(magnitude); in applyTo() 187 quantity.adjustMagnitude(-magnitude); in applyReciprocalTo()
|
D | CompactNotation.java | 131 int magnitude; in processQuantity() local 134 magnitude = 0; in processQuantity() 138 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity() 139 magnitude -= multiplier; in processQuantity() 143 String patternString = data.getPattern(magnitude, plural); in processQuantity()
|
/third_party/boost/libs/compute/perf/ |
D | perf_cart_to_polar.cpp | 39 float magnitude = std::sqrt(x*x + y*y); in serial_cartesian_to_polar() local 42 output[i*2+0] = magnitude; in serial_cartesian_to_polar() 50 float magnitude = input[i*2+0]; in serial_polar_to_cartesian() local 53 float x = magnitude * cos(angle); in serial_polar_to_cartesian() 54 float y = magnitude * sin(angle); in serial_polar_to_cartesian() 67 float magnitude = sqrt(x*x + y*y); 70 return (float2)(magnitude, angle); 76 float magnitude = p.x; 79 float x = magnitude * cos(angle); 80 float y = magnitude * sin(angle);
|
/third_party/typescript/tests/baselines/reference/ |
D | jsDeclarationsFunctionLikeClasses.js | 22 export function magnitude(p) { function 46 exports.magnitude = void 0; 50 function magnitude(p) { 53 exports.magnitude = magnitude; 75 export function magnitude(p: Point): number;
|
/third_party/ffmpeg/libavfilter/ |
D | vaf_spectrumsynth.c | 55 AVFrame *magnitude, *phase; member 108 AVFilterLink *magnitude = ctx->inputs[0]; in query_formats() local 133 if ((ret = ff_formats_ref(formats, &magnitude->outcfg.formats)) < 0) in query_formats() 229 const int m_linesize = s->magnitude->linesize[0]; in read16_fft_bin() 231 const uint16_t *m = (uint16_t *)(s->magnitude->data[0] + y * m_linesize); in read16_fft_bin() 233 float magnitude, phase; in read16_fft_bin() local 237 magnitude = m[x] / (double)UINT16_MAX; in read16_fft_bin() 240 magnitude = ff_exp10(((m[x] / (double)UINT16_MAX) - 1.) * 6.); in read16_fft_bin() 247 s->fft_data[ch][f].re = magnitude * cos(phase); in read16_fft_bin() 248 s->fft_data[ch][f].im = magnitude * sin(phase); in read16_fft_bin() [all …]
|
D | asrc_afirsrc.c | 42 float *magnitude; member 121 av_freep(&s->magnitude); in uninit() 190 const float *magnitude, in lininterp() argument 199 … float mg = (x - freq[j-1]) / (freq[j] - freq[j-1]) * (magnitude[j] - magnitude[j-1]) + magnitude[… in lininterp() 223 ret = parse_string(s->magnitude_str, &s->magnitude, &s->nb_magnitude, &s->magnitude_size); in config_output() 272 lininterp(s->complexf, s->freq, s->magnitude, s->phase, s->nb_freq, fft_size / 2); in config_output()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-number-prototype.c | 315 int magnitude; in ecma_builtin_number_prototype_object_to_string() local 324 magnitude = 0; in ecma_builtin_number_prototype_object_to_string() 329 magnitude++; in ecma_builtin_number_prototype_object_to_string() 336 required_digits = magnitude + 1; in ecma_builtin_number_prototype_object_to_string() 346 magnitude = (int) floor ((log (10) / log (radix)) * -exponent); in ecma_builtin_number_prototype_object_to_string() 353 required_digits = magnitude + ECMA_NUMBER_FRACTION_WIDTH + 1; in ecma_builtin_number_prototype_object_to_string() 370 for (int i = 0; i < magnitude; i++) in ecma_builtin_number_prototype_object_to_string() 377 for (int i = 0; i < magnitude; i++) in ecma_builtin_number_prototype_object_to_string() 425 int point = exponent >= 0 ? magnitude + 1: buff_index - magnitude; in ecma_builtin_number_prototype_object_to_string()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/ |
D | GlitchAnalyzer.h | 59 void setMagnitude(double magnitude) { in setMagnitude() argument 60 mMagnitude = magnitude; in setMagnitude() 142 double magnitude = 2.0 * sqrt((sinMean * sinMean) + (cosMean * cosMean)); variable 147 return magnitude; 246 double magnitude = calculateMagnitude(&phaseOffset); in processInputFrame() local 248 … setMagnitude((mMagnitude * (1.0 - coefficient)) + (magnitude * coefficient)); in processInputFrame()
|