Home
last modified time | relevance | path

Searched refs:fraction (Results 1 - 25 of 66) sorted by relevance

123

/third_party/jerryscript/jerry-core/ecma/base/
H A Decma-helpers-number.c47 * Packing sign, fraction and biased exponent to ecma-number
49 * @return ecma-number with specified sign, biased_exponent and fraction
54 uint64_t fraction) /**< fraction */ in ecma_number_pack()
57 JERRY_ASSERT ((fraction & ~((1ull << ECMA_NUMBER_FRACTION_WIDTH) - 1)) == 0); in ecma_number_pack()
61 ((uint32_t) fraction)); in ecma_number_pack()
69 * Unpacking sign, fraction and biased exponent from ecma-number
75 uint64_t *fraction_p) /**< [out] fraction (optional) */ in ecma_number_unpack()
110 * Packing sign, fraction and biased exponent to ecma-number
112 * @return ecma-number with specified sign, biased_exponent and fraction
52 ecma_number_pack(bool sign, uint32_t biased_exp, uint64_t fraction) ecma_number_pack() argument
115 ecma_number_pack(bool sign, uint32_t biased_exp, uint64_t fraction) ecma_number_pack() argument
178 uint64_t fraction; ecma_number_get_fraction_field() local
229 uint64_t fraction = ecma_number_get_fraction_field (num); ecma_number_is_nan() local
327 uint64_t fraction = ecma_number_get_fraction_field (num); ecma_number_is_infinity() local
365 uint64_t fraction = ecma_number_get_fraction_field (num); ecma_number_get_fraction_and_exponent() local
417 ecma_number_make_normal_positive_from_fraction_and_exponent(uint64_t fraction, int32_t exponent) ecma_number_make_normal_positive_from_fraction_and_exponent() argument
532 uint64_t fraction = ecma_number_get_fraction_field (num); ecma_number_get_prev() local
567 uint64_t fraction = ecma_number_get_fraction_field (num); ecma_number_get_next() local
599 uint64_t fraction; ecma_number_trunc() local
[all...]
/third_party/lame/mpglib/
H A Dlayer2.c218 II_step_two(PMPSTR mp, sideinfo_layer_II* si, struct frame *fr, int gr, real fraction[2][4][SBLIMIT]) in II_step_two() argument
260 fraction[ch][0][i] = (real) r0; in II_step_two()
261 fraction[ch][1][i] = (real) r1; in II_step_two()
262 fraction[ch][2][i] = (real) r2; in II_step_two()
265 fraction[ch][0][i] = fraction[ch][1][i] = fraction[ch][2][i] = 0.0; in II_step_two()
292 fraction[ch][0][i] = (real) r0; in II_step_two()
293 fraction[ch][1][i] = (real) r1; in II_step_two()
294 fraction[c in II_step_two()
371 real fraction[2][4][SBLIMIT]; /* pick_table clears unused subbands */ decode_layer2_frame() local
[all...]
H A Dlayer1.c110 I_step_two(PMPSTR mp, sideinfo_layer_I *si, real fraction[2][SBLIMIT]) in I_step_two() argument
143 fraction[0][i] = (real)r0; in I_step_two()
144 fraction[1][i] = (real)r1; in I_step_two()
162 fraction[0][i] = (real)r0; in I_step_two()
163 fraction[1][i] = (real)r1; in I_step_two()
166 fraction[0][i] = 0.0; in I_step_two()
167 fraction[1][i] = 0.0; in I_step_two()
183 fraction[0][i] = (real)r0; in I_step_two()
186 fraction[0][i] = 0.0; in I_step_two()
202 real fraction[ in decode_layer1_frame() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
H A Dmath_frexp_test.cpp40 double fraction = frexp(inputNum, &exponent); in HWTEST_F() local
41 EXPECT_DOUBLE_EQ(2048.0, scalbn(fraction, exponent)); in HWTEST_F()
69 float fraction = frexpf(inputNum, &exponent); in HWTEST_F() local
70 EXPECT_FLOAT_EQ(2048.0f, scalbnf(fraction, exponent)); in HWTEST_F()
82 float fraction = frexpf(inputNum, &exponent); in HWTEST_F() local
83 EXPECT_FLOAT_EQ(6.3f, scalbnf(fraction, exponent)); in HWTEST_F()
95 long double fraction = frexpl(inputNum, &exponent); in HWTEST_F() local
96 EXPECT_DOUBLE_EQ(2048.0L, scalbnl(fraction, exponent)); in HWTEST_F()
/third_party/rust/crates/minimal-lexical/tests/
H A Dslow_tests.rs53 let fraction = b"4703282292062327208828439643411068618252990130716238221279284125033775363510437593264991818081799618989828234772285886546332835517796989819938739800539093906315035659515570226392290858392449105184435931802849936536152500319370457678249219365623669863658480757001585769269903706311928279558551332927834338409351978015531246597263579574622766465272827220056374006485499977096599470454020828166226237857393450736339007967761930577506740176324673600968951340535537458516661134223766678604162159680461914467291840300530057530849048765391711386591646239524912623653881879636239373280423891018672348497668235089863388587925628302755995657524455507255189313690836254779186948667994968324049705821028513185451396213837722826145437693412532098591327667236328124999"; in slow_test()
63 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test()
68 let fraction = b"47032822920623272088284396434110686182529901307162382212792841250337753635104375932649918180817996189898282347722858865463328355177969898199387398005390939063150356595155702263922908583924491051844359318028499365361525003193704576782492193656236698636584807570015857692699037063119282795585513329278343384093519780155312465972635795746227664652728272200563740064854999770965994704540208281662262378573934507363390079677619305775067401763246736009689513405355374585166611342237666786041621596804619144672918403005300575308490487653917113865916462395249126236538818796362393732804238910186723484976682350898633885879256283027559956575244555072551893136908362547791869486679949683240497058210285131854513962138377228261454376934125320985913276672363281251"; in slow_test()
69 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test()
75 let fraction = b"9884656743115805365666807213050294962762414131308158973971342756154045415486693752413698006024096935349884403114202125541629105369684531108613657287705365884742938136589844238179474556051429647415148697857438797685859063890851407391008830874765563025951597582513936655578157348020066364210154316532161708032"; in slow_test()
85 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test()
90 let fraction = b"98846567431158053656668072130502949627624141313081589739713427561540454154866937524136980060240969353498844031142021255416291053696845311086136572877053658847429381365898442381794745560514296474151486978574387976858590638908514073910088308747655630259515975825139366555781573480200663642101543165321617080321"; in slow_test()
91 let result = slow::slow::<f64, _, _>(num.clone(), fp, integer.iter(), fraction.iter()); in slow_test()
272 let fraction = b"4703282292062327208828439643411068618252990130716238221279284125033775363510437593264991818081799618989828234772285886546332835517796989819938739800539093906315035659515570226392290858392449105184435931802849936536152500319370457678249219365623669863658480757001585769269903706311928279558551332927834338409351978015531246597263579574622766465272827220056374006485499977096599470454020828166226237857393450736339007967761930577506740176324673600968951340535537458516661134223766678604162159680461914467291840300530057530849048765391711386591646239524912623653881879636239373280423891018672348497668235089863388587925628302755995657524455507255189313690836254779186948667994968324049705821028513185451396213837722826145437693412532098591327667236328124999"; in parse_mantissa_test()
273 let (bigmant, count) = slow::parse_mantissa(integer.iter(), fraction in parse_mantissa_test()
[all...]
H A Dparse_tests.rs4 fn check_parse_float<F: num::Float>(integer: &str, fraction: &str, exponent: i32, expected: F) { in check_parse_float()
6 let fraction = fraction.as_bytes().iter(); in check_parse_float()
7 assert!(expected == parse::parse_float::<F, _, _>(integer, fraction, exponent)); in check_parse_float()
/third_party/glslang/SPIRV/
H A Dhex_float.h271 // The representation of the fraction, not the actual bits. This
277 // The topmost bit in the nibble-aligned fraction.
286 // The mask for the encoded fraction. It does not include the
301 // How far from the right edge the fraction is shifted.
672 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask) in operator <<() local
675 const bool is_zero = exponent == 0 && fraction == 0; in operator <<()
689 while ((fraction & HF::fraction_top_bit) == 0) { in operator <<()
690 fraction = static_cast<uint_type>(fraction << 1); in operator <<()
695 fraction in operator <<()
716 << std::setfill('0') << std::hex << fraction; operator <<() local
880 uint_type fraction = 0; operator >>() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dreplaygain.c40 char *fraction; in parse_value() local
54 db = strtol(value, &fraction, 0); in parse_value()
55 if (*fraction++ == '.') { in parse_value()
56 while (av_isdigit(*fraction) && scale) { in parse_value()
57 mb += scale * (*fraction - '0'); in parse_value()
59 fraction++; in parse_value()
/third_party/skia/gm/
H A Dstringart.cpp74 SkScalar fraction = 1.0f - TimeUtils::Scaled(1e-9 * nanos, 2.0f/kDesiredDurationSecs, 2.0f); variable
75 if (fraction <= 0.0f) {
76 fraction = -fraction;
79 SkASSERT(fraction >= 0.0f && fraction <= 1.0f);
81 fNumSteps = (int) (fraction * kMaxNumSteps);
/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dhex_float.h318 // The representation of the fraction, not the actual bits. This
323 // The topmost bit in the nibble-aligned fraction.
332 // The mask for the encoded fraction. It does not include the
347 // How far from the right edge the fraction is shifted.
755 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask) in operator <<() local
758 const bool is_zero = exponent == 0 && fraction == 0; in operator <<()
772 while ((fraction & HF::fraction_top_bit) == 0) { in operator <<()
773 fraction = static_cast<uint_type>(fraction << 1); in operator <<()
778 fraction in operator <<()
799 << std::setfill('0') << std::hex << fraction; operator <<() local
963 uint_type fraction = 0; operator >>() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
H A Dhex_float.h318 // The representation of the fraction, not the actual bits. This
323 // The topmost bit in the nibble-aligned fraction.
332 // The mask for the encoded fraction. It does not include the
347 // How far from the right edge the fraction is shifted.
755 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask) in operator <<() local
758 const bool is_zero = exponent == 0 && fraction == 0; in operator <<()
772 while ((fraction & HF::fraction_top_bit) == 0) { in operator <<()
773 fraction = static_cast<uint_type>(fraction << 1); in operator <<()
778 fraction in operator <<()
799 << std::setfill('0') << std::hex << fraction; operator <<() local
963 uint_type fraction = 0; operator >>() local
[all...]
/third_party/spirv-tools/source/util/
H A Dhex_float.h319 // The representation of the fraction, not the actual bits. This
324 // The topmost bit in the nibble-aligned fraction.
333 // The mask for the encoded fraction. It does not include the
348 // How far from the right edge the fraction is shifted.
756 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask) in operator <<() local
759 const bool is_zero = exponent == 0 && fraction == 0; in operator <<()
773 while ((fraction & HF::fraction_top_bit) == 0) { in operator <<()
774 fraction = static_cast<uint_type>(fraction << 1); in operator <<()
779 fraction in operator <<()
800 << std::setfill('0') << std::hex << fraction; operator <<() local
1006 uint_type fraction = 0; operator >>() local
[all...]
/third_party/protobuf/src/google/protobuf/stubs/
H A Dmathutil.h126 // fraction of their magnitude or within a certain absolute margin of error.
128 // WithinFraction(x, y, fraction) || WithinMargin(x, y, margin)
133 const T fraction, const T margin);
138 const T fraction, const T margin) { in WithinFractionOrMargin()
139 // Not just "0 <= fraction" to fool the compiler for unsigned types. in WithinFractionOrMargin()
140 GOOGLE_DCHECK((T(0) < fraction || T(0) == fraction) && in WithinFractionOrMargin()
141 fraction < T(1) && in WithinFractionOrMargin()
154 T relative_margin = static_cast<T>(fraction * Max(Abs(x), Abs(y))); in WithinFractionOrMargin()
137 WithinFractionOrMargin(const T x, const T y, const T fraction, const T margin) WithinFractionOrMargin() argument
/third_party/protobuf/src/google/protobuf/util/
H A Dfield_comparator.h136 // Sets the fraction and margin for the float comparison of a given field.
142 void SetFractionAndMargin(const FieldDescriptor* field, double fraction,
145 // Sets the fraction and margin for the float comparison of all float and
151 void SetDefaultFractionAndMargin(double fraction, double margin);
162 // Defines the tolerance for floating point comparison (fraction and margin).
164 double fraction; member
166 Tolerance() : fraction(0.0), margin(0.0) {} in Tolerance()
167 Tolerance(double f, double m) : fraction(f), margin(m) {} in Tolerance()
H A Dfield_comparator.cc138 void DefaultFieldComparator::SetDefaultFractionAndMargin(double fraction, in SetDefaultFractionAndMargin() argument
140 default_tolerance_ = Tolerance(fraction, margin); in SetDefaultFractionAndMargin()
145 double fraction, in SetFractionAndMargin()
151 map_tolerance_[field] = Tolerance(fraction, margin); in SetFractionAndMargin()
174 // Covers +inf and -inf (which are not within margin or fraction of in CompareDoubleOrFloat()
194 // Use user-provided fraction and margin. Since they are stored as in CompareDoubleOrFloat()
198 value_1, value_2, static_cast<T>(tolerance->fraction), in CompareDoubleOrFloat()
144 SetFractionAndMargin(const FieldDescriptor* field, double fraction, double margin) SetFractionAndMargin() argument
/third_party/node/benchmark/
H A D_benchmark_progress.js11 function fraction(numerator, denominator) { function
103 `${fraction(completedFiles, scheduledFiles)} files | ` +
104 `${fraction(completedRunsForFile, runsPerFile)} runs | ` +
105 `${fraction(completedConfig, scheduledConfig)} configs]: ` +
/third_party/optimized-routines/math/test/rtest/
H A Dsemi.c506 if (!fh && !fl) { /* no fraction part */ in test_modf()
541 if (!f) { /* no fraction part */ in test_modff()
609 /* Being infinite means that our fraction is zero and exponent is 0x7ff */ in test_isinf()
617 /* Being NaN means that our exponent is 0xff and non-0 fraction */ in test_isnanf()
619 int fraction = x[0] & 0x007fffff; in test_isnanf() local
620 if ((exponent == 0x7f800000) && (fraction != 0)) out[0] = 1; in test_isnanf()
627 /* Being NaN means that our exponent is 0x7ff and non-0 fraction */ in test_isnan()
673 int fraction = (x[0] & 0x000fffff) | x[1]; in test_fpclassify() local
675 if ((exponent == 0x00) && (fraction == 0)) out[0] = 0; in test_fpclassify()
676 else if ((exponent == 0x00) && (fraction ! in test_fpclassify()
686 int fraction = x[0] & 0x007fffff; test_fpclassifyf() local
[all...]
/third_party/rust/crates/minimal-lexical/src/
H A Dslow.rs40 fraction: Iter2, in slow()
59 let (bigmant, digits) = parse_mantissa(integer, fraction, F::MAX_DIGITS); in slow()
249 /// Check and round-up the fraction if any non-zero digits exist.
267 mut fraction: Iter2, in parse_mantissa()
309 round_up_nonzero!(format, fraction, result, count); in parse_mantissa()
318 // Skip leading fraction zeros.
321 for &c in &mut fraction {
329 // Process the fraction digits.
330 'fraction: loop {
333 if let Some(&c) = fraction
[all...]
/third_party/alsa-lib/src/pcm/
H A Dpcm_softvol.c65 * is a fraction more than 90 dB, so set 90 dB as the maximum possible gain.
130 int fraction; in MULTI_DIV_int() local
132 fraction = MULTI_DIV_32x16(a, b & VOL_SCALE_MASK); in MULTI_DIV_int()
134 long long amp = (long long)a * gain + fraction; in MULTI_DIV_int()
141 return swap ? (int)bswap_32(fraction) : fraction; in MULTI_DIV_int()
148 int fraction; in MULTI_DIV_24() local
149 fraction = MULTI_DIV_32x16(a, b & VOL_SCALE_MASK); in MULTI_DIV_24()
151 long long amp = (long long)a * gain + fraction; in MULTI_DIV_24()
158 return fraction; in MULTI_DIV_24()
164 int fraction; MULTI_DIV_short() local
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
H A Dnumber_test.cpp127 char fraction = std::get<1>(GetParam()); in TEST_P() local
128 if (fraction != '\0') in TEST_P()
129 str.push_back(fraction); in TEST_P()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-number-prototype.c93 /* Add leading zeros to the fraction part. */ in ecma_builtin_number_prototype_helper_to_string()
130 /* Add significant digits of the fraction part. */ in ecma_builtin_number_prototype_helper_to_string()
175 /* Add significant digits of the fraction part and fill the remaining digits with zero */ in ecma_builtin_binary_floating_number_to_string()
385 ecma_number_t fraction = this_arg_number - (ecma_number_t) whole; in ecma_builtin_number_prototype_object_to_string() local
388 if (!ecma_number_is_zero (fraction) && exponent >= 0) in ecma_builtin_number_prototype_object_to_string()
442 fraction *= radix; in ecma_builtin_number_prototype_object_to_string()
443 lit_utf8_byte_t digit = (lit_utf8_byte_t) floor (fraction); in ecma_builtin_number_prototype_object_to_string()
446 fraction -= (ecma_number_t) floor (fraction); in ecma_builtin_number_prototype_object_to_string()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
H A DWorkloadView.java75 void setFaderNormalizedProgress(double fraction) { in setFaderNormalizedProgress() argument
76 mSeekBar.setProgress((int)(fraction * FADER_PROGRESS_MAX)); in setFaderNormalizedProgress()
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/
H A DSincResampler.cpp70 float fraction = tablePhase - index1; in readFrame() local
74 frame[channel] = low + (fraction * (high - low)); in readFrame()
H A DSincResamplerStereo.cpp74 float fraction = tablePhase - index1; in readFrame() local
78 frame[channel] = low + (fraction * (high - low)); in readFrame()
/third_party/python/Lib/
H A D_strptime.py357 hour = minute = second = fraction = 0
422 fraction = int(s)
557 weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction
568 tt, fraction, gmtoff_fraction = _strptime(data_string, format)
570 args = tt[:6] + (fraction,)

Completed in 19 milliseconds

123