Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/crypto/openssl/test/
H A Drsa_mp_test.c152 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() local
170 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1()
171 if (!TEST_ptr(pris) || !TEST_ptr(exps) || !TEST_ptr(coeffs)) in key2048p3_v1()
176 coeffs[0] = BN_bin2bn(ex_coefficient, sizeof(ex_coefficient) - 1, NULL); in key2048p3_v1()
177 if (!TEST_ptr(pris[0]) || !TEST_ptr(exps[0]) || !TEST_ptr(coeffs[0])) in key2048p3_v1()
181 coeffs, NUM_EXTRA_PRIMES))) in key2048p3_v1()
187 OPENSSL_free(coeffs); in key2048p3_v1()
194 if (coeffs != NULL) in key2048p3_v1()
195 BN_free(coeffs[0]); in key2048p3_v1()
202 STACK_OF(BIGNUM) *primes = NULL, *exps = NULL, *coeffs = NULL; in key2048p3_v2()
[all …]
/freebsd/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk127 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \
157 coeffs["treble", gain, 0] = feedeq_fx_floor(a0);
158 coeffs["treble", gain, 1] = feedeq_fx_floor(a1);
159 coeffs["treble", gain, 2] = feedeq_fx_floor(a2);
160 coeffs["treble", gain, 3] = feedeq_fx_floor(b0);
161 coeffs["treble", gain, 4] = feedeq_fx_floor(b1);
162 coeffs["treble", gain, 5] = feedeq_fx_floor(b2);
191 coeffs["bass", gain, 0] = feedeq_fx_floor(a0);
192 coeffs["bass", gain, 1] = feedeq_fx_floor(a1);
193 coeffs["bass", gain, 2] = feedeq_fx_floor(a2);
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/
H A Derfcf.c16 float coeffs[4]; member
31 .coeffs = { 0x1.555556p-2f, 0x1.555556p-1f, 0x1.111112p-3f, 0 },
137 float32x4_t coeffs = vld1q_f32 (dat->coeffs); in V_NAME_F1() local
138 float32x4_t p2 = vfmsq_laneq_f32 (dat->third, r2, coeffs, 1); in V_NAME_F1()
140 = vmulq_f32 (r, vfmaq_laneq_f32 (v_f32 (-0.5), r2, coeffs, 0)); in V_NAME_F1()
141 float32x4_t p4 = vfmaq_laneq_f32 (dat->two_over_five, r2, coeffs, 2); in V_NAME_F1()
/freebsd/contrib/arm-optimized-routines/math/tools/
H A Dsincosf.sollya6 // This script only finds the coeffs for cos - see math/tools/sin.sollya for sin coeffs.
21 // first coeff is fixed, iteratively find optimal double prec coeffs
32 print("coeffs:");
H A Dsincos.sollya6 // This script only finds the coeffs for cos - see math/aarch64/advsimd/sin.c for sin coeffs
21 // first coeff is fixed, iteratively find optimal double prec coeffs
32 print("coeffs:");
H A Dremez.jl91 function poly_eval(coeffs::Array{BigFloat}, x::BigFloat)
92 n = length(coeffs)
96 return coeffs[1]
98 return coeffs[1] + x * poly_eval(coeffs[2:n], x)
134 function poly_to_string(coeffs::Array{BigFloat})
135 n = length(coeffs)
139 return float_to_str(coeffs[1])
141 return string(float_to_str(coeffs[1]), "+", xvarname, "*(",
142 poly_to_string(coeffs[2:n]), ")")
900 function wellcond(coeffs, lo, hi) argument
[all …]
H A Dv_exp.sollya18 // first 2 coeffs are fixed, iteratively find optimal double prec coeffs
29 print("coeffs:");
H A Dexp.sollya19 // first 2 coeffs are fixed, iteratively find optimal double prec coeffs
34 print("coeffs:");
H A Dcos.sollya19 // first coeff is fixed, iteratively find optimal double prec coeffs
30 print("coeffs:");
H A Dv_sin.sollya25 // first coeff is fixed, iteratively find optimal double prec coeffs
35 print("coeffs:");
H A Dsinpi.sollya22 // first coeff is predefine, iteratively find optimal double prec coeffs
32 print("coeffs:");
H A Dsin.sollya25 // first coeff is fixed, iteratively find optimal double prec coeffs
36 print("coeffs:");
H A Dlog.sollya24 // first coeff is fixed, iteratively find optimal double prec coeffs
34 print("coeffs:");
H A Dv_log.sollya23 // first coeff is fixed, iteratively find optimal double prec coeffs
33 print("coeffs:");
H A Dv_log2f.sollya27 // first coeff is fixed, iteratively find optimal double prec coeffs
37 print("coeffs:");
H A Dlog_abs.sollya19 // first coeff is fixed, iteratively find optimal double prec coeffs
34 print("coeffs:");
H A Dv_log10.sollya23 // first coeff is fixed, iteratively find optimal double prec coeffs
37 print("coeffs:");
H A Dlog10f.sollya26 // first coeff is fixed, iteratively find optimal double prec coeffs
36 print("coeffs:");
H A Dlog2.sollya29 // first coeff is fixed, iteratively find optimal double prec coeffs
41 print("coeffs:");
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_rsa_get0_all_params.pod14 STACK_OF(BIGNUM_const) *coeffs);
17 const STACK_OF(BIGNUM) *coeffs);
23 I<exps> and I<coeffs>. The B<RSA> object takes ownership of the BIGNUMs,
28 I<primes>, I<exps> and I<coeffs>. The B<RSA> object retains ownership of the
49 the I<coeffs> stack contains I<qInv>, and then the rest of the coefficients
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_backend.c68 STACK_OF(BIGNUM) *factors = NULL, *exps = NULL, *coeffs = NULL; in ossl_rsa_fromdata()
95 || !collect_numbers(coeffs = sk_BIGNUM_new_null(), params, in ossl_rsa_fromdata()
101 && !ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) in ossl_rsa_fromdata()
108 sk_BIGNUM_free(coeffs); in ossl_rsa_fromdata()
117 sk_BIGNUM_pop_free(coeffs, BN_free); in ossl_rsa_fromdata()
130 STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null(); in DEFINE_SPECIAL_STACK_OF_CONST()
132 if (rsa == NULL || factors == NULL || exps == NULL || coeffs == NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
136 ossl_rsa_get0_all_params(rsa, factors, exps, coeffs); in DEFINE_SPECIAL_STACK_OF_CONST()
154 coeffs)) in DEFINE_SPECIAL_STACK_OF_CONST()
167 sk_BIGNUM_const_free(coeffs); in DEFINE_SPECIAL_STACK_OF_CONST()
H A Drsa_lib.c480 BIGNUM *coeffs[], int pnum) in RSA_set0_multi_prime_params() argument
486 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params()
500 if (primes[i] != NULL && exps[i] != NULL && coeffs[i] != NULL) { in RSA_set0_multi_prime_params()
506 pinfo->t = coeffs[i]; in RSA_set0_multi_prime_params()
610 const BIGNUM *coeffs[]) in RSA_get0_multi_prime_crt_params() argument
618 if (exps != NULL || coeffs != NULL) { in RSA_get0_multi_prime_crt_params()
627 if (coeffs != NULL) in RSA_get0_multi_prime_crt_params()
628 coeffs[i] = pinfo->t; in RSA_get0_multi_prime_crt_params()
745 const STACK_OF(BIGNUM) *coeffs) in DEFINE_STACK_OF()
752 if (primes == NULL || exps == NULL || coeffs == NULL) in DEFINE_STACK_OF()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/sve/
H A Derfcf.c80 svfloat32_t coeffs = svld1rq (svptrue_b32 (), &dat->third); in SV_NAME_F1() local
83 svfloat32_t p2 = svmls_lane (sv_f32 (dat->third), r2, coeffs, 1); in SV_NAME_F1()
85 = svmul_x (svptrue_b32 (), r, svmla_lane (sv_f32 (-0.5), r2, coeffs, 0)); in SV_NAME_F1()
86 svfloat32_t p4 = svmla_lane (sv_f32 (dat->two_over_five), r2, coeffs, 2); in SV_NAME_F1()
/freebsd/contrib/arm-optimized-routines/math/
H A Dtgamma128.c34 static long double poly(const long double *coeffs, size_t n, long double x) in poly() argument
36 long double result = coeffs[--n]; in poly()
39 result = (result * x) + coeffs[--n]; in poly()
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c638 STACK_OF(BIGNUM_const) *coeffs = NULL; in rsa_to_text()
650 coeffs = sk_BIGNUM_const_new_null(); in rsa_to_text()
652 if (factors == NULL || exps == NULL || coeffs == NULL) { in rsa_to_text()
668 ossl_rsa_get0_all_params((RSA *)rsa, factors, exps, coeffs); in rsa_to_text()
703 sk_BIGNUM_const_value(coeffs, 0))) in rsa_to_text()
719 sk_BIGNUM_const_value(coeffs, i - 1))) in rsa_to_text()
777 sk_BIGNUM_const_free(coeffs); in rsa_to_text()

123