Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 12 of 12) sorted by relevance

/qemu/tests/qtest/
H A Dnpcm7xx_rng-test.c110 s_obs = abs(sn) / sqrt(len * BITS_PER_BYTE); in calc_monobit_p()
112 return erfc(s_obs / sqrt(2)); in calc_monobit_p()
142 / (2 * sqrt(2 * nr_bits) * pi * (1.0 - pi))); in calc_runs_p()
/qemu/fpu/
H A Dsoftfloat-parts.c.inc693 * https://git.musl-libc.org/cgit/musl/tree/src/math/sqrt.c
697 static void partsN(sqrt)(FloatPartsN *a, float_status *status,
746 * Approximate r ~= 1/sqrt(m) and s ~= sqrt(m) when m in [1, 4).
751 * The relative error (e = r0*sqrt(m)-1) of a linear estimate
769 /* |r*sqrt(m) - 1| < 0x1.FDp-9 */
779 /* |r*sqrt(m) - 1| < 0x1.7Bp-16 */
790 /* s < sqrt(m) < s + 0x1.08p-23 */
832 /* |r*sqrt(m) - 1| < 0x1.7Bp-16; convert to 64-bit arithmetic */
839 /* |r*sqrt(m) - 1| < 0x1.a5p-31 */
852 /* -0x1p-116 < s - sqrt(m) < 0x3.8001p-125 */
[all …]
H A Dsoftfloat.c822 PARTS_GENERIC_64_128(sqrt, A)(A, S, F)
4665 ur.h = sqrt(ua.h); in float64_sqrt()
/qemu/tests/fp/
H A Dfp-bench.c303 res.d = sqrt(a); in bench()
460 GEN_BENCH_ALL_TYPES_NO_NEG(sqrt, OP_SQRT, 1)
481 GEN_BENCH_FUNCS(sqrt, OP_SQRT),
H A Dmeson.build100 'sqrt': 'ops'
/qemu/target/arm/
H A Dvfp_helper.c284 dh_ctype_f16 VFP_HELPER(sqrt, h)(dh_ctype_f16 a, CPUARMState *env) in VFP_BINOP()
289 float32 VFP_HELPER(sqrt, s)(float32 a, CPUARMState *env) in VFP_HELPER() argument
294 float64 VFP_HELPER(sqrt, d)(float64 a, CPUARMState *env) in VFP_HELPER() argument
/qemu/target/mips/
H A Dhelper.h94 FOP_PROTO(sqrt)
/qemu/target/i386/tcg/
H A Dops_sse_header.h.inc128 SSE_HELPER_S3(sqrt)
H A Demit.c.inc537 UNARY_FP_SSE(VSQRT, sqrt)
/qemu/target/s390x/tcg/
H A Dvec_fpu_helper.c257 DEF_GVEC_VOP2(vfsq, sqrt)
/qemu/tests/tcg/i386/
H A Dtest-i386.c777 printf("a=%f sqrt(a)=%f\n", a, sqrt(a)); in test_fops()
/qemu/target/mips/tcg/
H A Dmsa_helper.c7778 MSA_FLOAT_UNOP(pwx->w[i], sqrt, pws->w[i], 32); in helper_msa_fsqrt_df()
7783 MSA_FLOAT_UNOP(pwx->d[i], sqrt, pws->d[i], 64); in helper_msa_fsqrt_df()