Home
last modified time | relevance | path

Searched refs:sqrtf (Results 1 – 25 of 167) sorted by relevance

1234567

/third_party/musl/src/math/
Dacoshf.c4 #undef sqrtf
5 #define sqrtf sqrtl macro
7 #undef sqrtf
8 #define sqrtf sqrt macro
20 return log1pf(x-1 + sqrtf((x-1)*(x-1)+2*(x-1))); in acoshf()
23 return logf(2*x - 1/(x+sqrtf(x*x-1))); in acoshf()
Dasinhf.c19 x = logf(2*x + 1/(sqrtf(x*x+1)+x)); in asinhf()
22 x = log1pf(x + x*x/(sqrtf(x*x+1)+1)); in asinhf()
Dacosf.c59 s = sqrtf(z); in acosf()
65 s = sqrtf(z); in acosf()
/third_party/musl/porting/liteos_a/kernel/src/math/
Dacoshf.c4 #undef sqrtf
5 #define sqrtf sqrtl macro
7 #undef sqrtf
8 #define sqrtf sqrt macro
20 return log1pf(x-1 + sqrtf((x-1)*(x-1)+2*(x-1))); in acoshf()
23 return logf(2*x - 1/(x+sqrtf(x*x-1))); in acoshf()
Dasinhf.c19 x = logf(2*x + 1/(sqrtf(x*x+1)+x)); in asinhf()
22 x = log1pf(x + x*x/(sqrtf(x*x+1)+1)); in asinhf()
Dacosf.c59 s = sqrtf(z); in acosf()
65 s = sqrtf(z); in acosf()
/third_party/ffmpeg/libavcodec/
Dopusenc_utils.h42 c = (1.0f/sqrtf(sqrtf(pow(2.0f, 1.0f/n) - 3.0f/4.0f) - 0.5f))/sqrtf(3.0f); in bessel_reinit()
46 c = sqrtf(3.0f)*sqrtf(sqrtf(pow(2.0f, 1.0f/n) - 3.0f/4.0f) - 0.5f); in bessel_reinit()
Daacenc_utils.h45 out[i] = sqrtf(a * sqrtf(a)); in abs_pow34_v()
51 return sqrtf(a * sqrtf(a)); in pos_pow34()
62 return sqrtf(a * sqrtf(a)) + rounding; in quant()
141 var = sqrtf(var * iswb_sizem1); in find_form_factor()
145 form += e2 * sqrtf(frm) / FFMAX(0.5f,nzl); in find_form_factor()
Daacsbr.c233 sbr->q_m[e][m] = sqrtf(temp * sbr->q_mapped[e][m]); in sbr_gain_calc()
234 sbr->s_m[e][m] = sqrtf(temp * ch_data->s_indexmapped[e + 1][m]); in sbr_gain_calc()
236 sbr->gain[e][m] = sqrtf(sbr->e_origmapped[e][m] / in sbr_gain_calc()
240 sbr->gain[e][m] = sqrtf(sbr->e_origmapped[e][m] * sbr->q_mapped[e][m] / in sbr_gain_calc()
250 …gain_max = limgain[sbr->bs_limiter_gains] * sqrtf((FLT_EPSILON + sum[0]) / (FLT_EPSILON + sum[1])); in sbr_gain_calc()
264 gain_boost = sqrtf((FLT_EPSILON + sum[0]) / (FLT_EPSILON + sum[1])); in sbr_gain_calc()
Daacps_tablegen.h148 float c1 = (float)M_SQRT2 / sqrtf(1.0f + c*c); in ps_tableinit()
164 mu = sqrtf(1 + (4 * rho * rho - 4)/(mu * mu)); in ps_tableinit()
165 gamma = atanf(sqrtf((1.0f - mu)/(1.0f + mu))); in ps_tableinit()
Dopus_pvq.c188 gain[0] = 1.0f / sqrtf(E[0]); in celt_stereo_merge()
189 gain[1] = 1.0f / sqrtf(E[1]); in celt_stereo_merge()
424 gain /= sqrtf(pvq->pvq_search(X, y, K, N)); in celt_alg_quant()
439 gain /= sqrtf(celt_decode_pulses(rc, y, N, K)); in celt_alg_unquant()
460 return lrintf(32768.0f*atan2f(sqrtf(e[1]), sqrtf(e[0]))/M_PI); in celt_calc_theta()
466 const float energy_n = 1.0f/(sqrtf(e_l*e_l + e_r*e_r) + FLT_EPSILON); in celt_stereo_is_decouple()
869 float n = sqrtf(N0); in quant_band_template()
/third_party/musl/src/math/x32/
Dsqrtf.s1 .global sqrtf symbol
2 .type sqrtf,@function
3 sqrtf: sqrtss %xmm0, %xmm0 label
/third_party/skia/src/gpu/tessellate/
DWangsFormula.h40 return sqrtf(sqrtf(x)); in root4()
221 const float max_len = sqrtf(std::max(dot(p0, p0), std::max(dot(p1, p1), dot(p2, p2))));
230 const float numer = sqrtf(dot(dp, dp)) * precision + rp_minus_1 * dw;
244 return sqrtf(conic_pow2(tolerance, pts, w, vectorXform));
/third_party/rust/crates/minimal-lexical/tests/
Dlibm_tests.rs30 assert_eq!(libm::sqrtf(100.0), 10.0); in sqrtf_sanity_test()
31 assert_eq!(libm::sqrtf(4.0), 2.0); in sqrtf_sanity_test()
38 assert!(libm::sqrtf(-1.0).is_nan()); in sqrtf_spec_test()
39 assert!(libm::sqrtf(f32::NAN).is_nan()); in sqrtf_spec_test()
41 assert_eq!(libm::sqrtf(f), f); in sqrtf_spec_test()
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
Dmath_sqrt_test.cpp48 bool testResult = FloatUlpCmp(g_sqrtfData[i].expected, sqrtf(g_sqrtfData[i].input), 1);
60 EXPECT_FLOAT_EQ(4.0f, sqrtf(16.0f));
/third_party/ffmpeg/libavcodec/mips/
Daacpsy_mips.h116 Temp = sqrtf((float)band_sizes[g] / band->energy); in calc_thr_3gpp_mips()
118 band->nz_lines = form_factor * sqrtf(Temp); in calc_thr_3gpp_mips()
/third_party/alsa-utils/bat/
Danalyze.c123 sigma = sqrtf(sigma); in check()
172 a->mag[i] = sqrtf(r2 + i2); in calc_magnitude()
269 rms = sqrtf(tmp / na->nsamples); in calculate_noise_one_period()
283 tmp = na->rms_tgt / sqrtf(residual / na->nsamples); in calculate_noise_one_period()
328 na.rms_tgt = sqrtf(tmp / nsamples); in calculate_noise()
/third_party/ffmpeg/libavfilter/
Davf_avectorscope.c310 max = sqrtf(max); in filter_frame()
343 src[0] = FFSIGN(src[0]) * sqrtf(FFABS(src[0])); in filter_frame()
344 src[1] = FFSIGN(src[1]) * sqrtf(FFABS(src[1])); in filter_frame()
376 cx = sx * sqrtf(1 - 0.5 * sy * sy); in filter_frame()
377 cy = sy * sqrtf(1 - 0.5 * sx * sx); in filter_frame()
/third_party/musl/libc-test/report_base/
DREPORT526 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:49: RU sqrtf(0x1.fffffep+127) want 0x1p+64 go…
527 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:73: RU sqrtf(0x1.000002p+0) want 0x1.000002p+…
528 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:75: RU sqrtf(0x1.fffffep-1) want 0x1p+0 got 0…
529 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:98: RU sqrtf(0x1p-149) want 0x1.6a09e8p-75 go…
530 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:142: RD sqrtf(0x1.fffffcp-127) want 0x1.fffff…
531 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:143: RD sqrtf(0x1.000004p-126) want 0x1p-63 g…
532 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:145: RD sqrtf(0x1.fffffp-1) want 0x1.fffff6p-…
533 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:147: RD sqrtf(0x1.fffff4p-1) want 0x1.fffff8p…
534 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:149: RD sqrtf(0x1.fffff8p-1) want 0x1.fffffap…
535 ../../third_party/musl/libc-test/src/math/ucb/sqrtf.h:151: RD sqrtf(0x1.fffffcp-1) want 0x1.fffffcp…
[all …]
/third_party/skia/samplecode/
DSampleAARects.cpp113 canvas->translate(20.0f / sqrtf(2.f), in onDrawContent()
114 20.0f / sqrtf(2.f)); in onDrawContent()
/third_party/musl/src/math/aarch64/
Dsqrtf.c3 float sqrtf(float x) in sqrtf() function
/third_party/musl/src/math/powerpc64/
Dsqrtf.c3 float sqrtf(float x) in sqrtf() function
/third_party/musl/src/math/x86_64/
Dsqrtf.c3 float sqrtf(float x) in sqrtf() function
/third_party/musl/src/math/i386/
Dsqrtf.c3 float sqrtf(float x) in sqrtf() function
/third_party/musl/src/math/riscv64/
Dsqrtf.c5 float sqrtf(float x) in sqrtf() function

1234567