Home
last modified time | relevance | path

Searched refs:expon (Results 1 – 21 of 21) sorted by relevance

/third_party/libsnd/src/GSM610/
Drpe.c217 int16_t expon, mant ; in APCM_quantization_xmaxc_to_exp_mant() local
222 expon = 0 ; in APCM_quantization_xmaxc_to_exp_mant()
223 if (xmaxc > 15) expon = SASR_W (xmaxc, 3) - 1 ; in APCM_quantization_xmaxc_to_exp_mant()
224 mant = xmaxc - (expon << 3) ; in APCM_quantization_xmaxc_to_exp_mant()
227 { expon = -4 ; in APCM_quantization_xmaxc_to_exp_mant()
233 expon-- ; in APCM_quantization_xmaxc_to_exp_mant()
238 assert (expon >= -4 && expon <= 6) ; in APCM_quantization_xmaxc_to_exp_mant()
241 *expon_out = expon ; in APCM_quantization_xmaxc_to_exp_mant()
256 int16_t expon, mant ; in APCM_quantization() local
272 expon = 0 ; in APCM_quantization()
[all …]
DChangeLog13 Renamed variables "exp" to "expon" to avoid shadowed parameter warnigns.
/third_party/boost/boost/multiprecision/detail/
Dfloat_string_cvt.hpp20 inline void round_string_up_at(std::string& s, int pos, I& expon) in round_string_up_at() argument
29 ++expon; in round_string_up_at()
34 round_string_up_at(s, pos - 1, expon); in round_string_up_at()
39 ++expon; in round_string_up_at()
62 exponent_type expon = 0; in convert_to_string() local
98 eval_convert_to(&expon, t); in convert_to_string()
99 if (-expon > std::numeric_limits<number<Backend> >::max_exponent10 - 3) in convert_to_string()
101 int e = -expon / 2; in convert_to_string()
106 if (expon & 1) in convert_to_string()
111 eval_pow(t, ten, -expon); in convert_to_string()
[all …]
/third_party/boost/boost/math/special_functions/
Dnext.hpp175 int expon; in float_next_imp() local
205 if(-0.5f == frexp(val, &expon)) in float_next_imp()
206 --expon; // reduce exponent when val is a power of two, and negative. in float_next_imp()
207 T diff = ldexp(T(1), expon - tools::digits<T>()); in float_next_imp()
222 boost::intmax_t expon; in float_next_imp() local
252 expon = 1 + ilogb(val); in float_next_imp()
253 if(-1 == scalbn(val, -expon) * std::numeric_limits<T>::radix) in float_next_imp()
254 --expon; // reduce exponent when val is a power of base, and negative. in float_next_imp()
255 T diff = scalbn(T(1), expon - std::numeric_limits<T>::digits); in float_next_imp()
305 int expon; in float_prior_imp() local
[all …]
Derf.hpp304 int expon; in erf_imp() local
305 hi = floor(ldexp(frexp(z, &expon), 26)); in erf_imp()
306 hi = ldexp(hi, expon - 26); in erf_imp()
337 int expon; in erf_imp() local
338 hi = floor(ldexp(frexp(z, &expon), 26)); in erf_imp()
339 hi = ldexp(hi, expon - 26); in erf_imp()
372 int expon; in erf_imp() local
373 hi = floor(ldexp(frexp(z, &expon), 26)); in erf_imp()
374 hi = ldexp(hi, expon - 26); in erf_imp()
497 int expon; in erf_imp() local
[all …]
Dulp.hpp24 int expon; in ulp_imp() local
45 frexp(fabs(val), &expon); in ulp_imp()
46 T diff = ldexp(T(1), expon - tools::digits<T>()); in ulp_imp()
58 int expon; in ulp_imp() local
79 expon = 1 + ilogb(fabs(val)); in ulp_imp()
80 T diff = scalbn(T(1), expon - std::numeric_limits<T>::digits); in ulp_imp()
/third_party/boost/boost/math/cstdfloat/
Dcstdfloat_iostream.hpp372 inline void round_string_up_at(std::string& s, int pos, int& expon) in round_string_up_at() argument
381 ++expon; in round_string_up_at()
386 round_string_up_at(s, pos - 1, expon); in round_string_up_at()
392 ++expon; in round_string_up_at()
411 int expon = 0; in convert_to_string() local
448 eval_convert_to(&expon, t); in convert_to_string()
450 if(-expon > std::numeric_limits<float_type>::max_exponent10 - 3) in convert_to_string()
452 int e = -expon / 2; in convert_to_string()
459 if((expon & 1) != 0) in convert_to_string()
466 t = boost::math::cstdfloat::detail::pown(ten, -expon); in convert_to_string()
[all …]
/third_party/libxml2/win32/VC10/
Dconfig.h57 int expon = 0; in isinf() local
58 double val = frexp (d, &expon); in isinf()
59 if (expon == 1025) { in isinf()
74 int expon = 0; in isnan() local
75 double val = frexp (d, &expon); in isnan()
76 if (expon == 1025) { in isnan()
/third_party/libxml2/include/
Dwin32config.h58 int expon = 0; in isinf() local
59 double val = frexp (d, &expon); in isinf()
60 if (expon == 1025) { in isinf()
75 int expon = 0; in isnan() local
76 double val = frexp (d, &expon); in isnan()
77 if (expon == 1025) { in isnan()
/third_party/libsnd/src/G72x/
Dg72x.c334 short expon ; /* Integer part of base 2 log of 'd' */ in quantize() local
346 expon = quan (dqm >> 1, power2, 15) ; in quantize()
347 mant = ((dqm << 7) >> expon) & 0x7F ; /* Fractional portion. */ in quantize()
348 dl = (expon << 7) + mant ; in quantize()
418 short mag, expon ; /* Adaptive predictor, FLOAT A */ in update() local
547 { expon = quan (mag, power2, 15) ; in update()
549 (expon << 6) + ((mag << 6) >> expon) : in update()
550 (expon << 6) + ((mag << 6) >> expon) - 0x400 ; in update()
558 { expon = quan (sr, power2, 15) ; in update()
559 state_ptr->sr [0] = (expon << 6) + ((sr << 6) >> expon) ; in update()
[all …]
/third_party/python/Lib/
Daifc.py185 expon = _read_short(f) # 2 bytes
187 if expon < 0:
189 expon = expon + 0x8000
192 if expon == himant == lomant == 0:
194 elif expon == 0x7FFF:
197 expon = expon - 16383
198 f = (himant * 0x100000000 + lomant) * pow(2.0, expon - 63)
229 expon = 0
233 fmant, expon = math.frexp(x)
234 if expon > 16384 or fmant >= 1 or fmant != fmant: # Infinity or NaN
[all …]
/third_party/mindspore/tests/st/probability/distribution/
Dtest_get_dist_args.py71 self.expon = msd.Exponential(dtype=dtype.float32)
76 args_list = self.expon.get_dist_args(rate)
78 args_list1 = self.expon.get_dist_args()
85 args_list3 = self.expon.get_dist_args(rate1)
86 dist_type = self.expon.get_dist_type()
Dtest_exponential.py41 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
64 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
158 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
181 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
204 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
227 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
250 expon_benchmark = stats.expon(scale=[[1.0], [2.0]])
/third_party/boost/boost/math/bindings/
Dmpfr.hpp77 inline mpfr_class frexp(const mpfr_class& v, int* expon) in frexp() argument
82 *expon = e; in frexp()
86 inline mpfr_class frexp(const __gmp_expr<T,U>& v, int* expon) in frexp() argument
88 return frexp(static_cast<mpfr_class>(v), expon); in frexp()
329 int expon = 0; in real_cast() local
338 result += ldexp((double)(t & 0xffffL), expon); in real_cast()
339 expon += 32; in real_cast()
Dmpreal.hpp103 inline mpfr::mpreal frexp(const mpfr::mpreal& v, int* expon) in frexp() argument
107 *expon = e; in frexp()
286 int expon = 0; in real_cast() local
295 result += ldexp((double)(t & 0xffffL), expon); in real_cast()
296 expon += 32; in real_cast()
De_float.hpp332 inline e_float frexp(const e_float& v, int* expon) in frexp() argument
337 *expon = static_cast<int>(i); in frexp()
/third_party/boost/boost/math/concepts/
Dreal_concept.hpp232 inline real_concept frexp(real_concept a, int* expon) in frexp() argument
233 { return std::frexp(a.value(), expon); } in frexp()
234 inline real_concept ldexp(real_concept a, int expon) in ldexp() argument
235 { return std::ldexp(a.value(), expon); } in ldexp()
Dstd_real_concept.hpp202 …oost::math::concepts::std_real_concept frexp(boost::math::concepts::std_real_concept a, int* expon) in frexp() argument
203 { return std::frexp(a.value(), expon); } in frexp()
204 …boost::math::concepts::std_real_concept ldexp(boost::math::concepts::std_real_concept a, int expon) in ldexp() argument
205 { return std::ldexp(a.value(), expon); } in ldexp()
/third_party/boost/libs/math/include_private/boost/math/tools/
Dtest_data.hpp499 int expon; in truncate_to_float() local
500 float f = floor(ldexp(frexp(*pf, &expon), 22)); in truncate_to_float()
501 f = ldexp(f, expon - 22); in truncate_to_float()
/third_party/boost/libs/math/doc/internals/
Dtest_data.qbk419 Tells class test_data to test points of the form ['basis + R * 2[super expon]] for each
420 /expon/ in the range [start_exponent, end_exponent], and /R/ a random number in \[0.5, 1\].
/third_party/chromium/patch/
D0001-cve.patch122613 - int expon = 0;
122614 - double val = frexp (d, &expon);
122615 - if (expon == 1025) {
122630 - int expon = 0;
122631 - double val = frexp (d, &expon);
122632 - if (expon == 1025) {
135944 - int expon = 0;
135945 - double val = frexp (d, &expon);
135946 - if (expon == 1025) {
135961 - int expon = 0;
[all …]