Home
last modified time | relevance | path

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

123

/freebsd/crypto/openssl/test/
H A Drsa_mp_test.c143 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() local
162 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1()
163 if (!TEST_ptr(pris) || !TEST_ptr(exps) || !TEST_ptr(coeffs)) in key2048p3_v1()
168 coeffs[0] = BN_bin2bn(ex_coefficient, sizeof(ex_coefficient) - 1, NULL); in key2048p3_v1()
169 if (!TEST_ptr(pris[0]) || !TEST_ptr(exps[0]) || !TEST_ptr(coeffs[0])) in key2048p3_v1()
173 coeffs, NUM_EXTRA_PRIMES))) in key2048p3_v1()
179 OPENSSL_free(coeffs); in key2048p3_v1()
186 if (coeffs != NULL) in key2048p3_v1()
187 BN_free(coeffs[0]); in key2048p3_v1()
194 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/libsamplerate/
H A Dsrc_sinc.c66 coeff_t const *coeffs ; member
224 priv->coeffs = fastest_coeffs.coeffs ; in sinc_filter_new()
225 priv->coeff_half_len = ARRAY_LEN (fastest_coeffs.coeffs) - 2 ; in sinc_filter_new()
231 priv->coeffs = slow_mid_qual_coeffs.coeffs ; in sinc_filter_new()
232 priv->coeff_half_len = ARRAY_LEN (slow_mid_qual_coeffs.coeffs) - 2 ; in sinc_filter_new()
238 priv->coeffs = slow_high_qual_coeffs.coeffs ; in sinc_filter_new()
239 priv->coeff_half_len = ARRAY_LEN (slow_high_qual_coeffs.coeffs) - 2 ; in sinc_filter_new()
399 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_single()
419 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_single()
552 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_stereo()
[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/crypto/openssl/crypto/rsa/
H A Drsa_lib.c487 BIGNUM *coeffs[], int pnum) in RSA_set0_multi_prime_params() argument
493 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params()
507 if (primes[i] != NULL && exps[i] != NULL && coeffs[i] != NULL) { in RSA_set0_multi_prime_params()
513 pinfo->t = coeffs[i]; in RSA_set0_multi_prime_params()
617 const BIGNUM *coeffs[]) in RSA_get0_multi_prime_crt_params() argument
625 if (exps != NULL || coeffs != NULL) { in RSA_get0_multi_prime_crt_params()
634 if (coeffs != NULL) in RSA_get0_multi_prime_crt_params()
635 coeffs[i] = pinfo->t; in RSA_get0_multi_prime_crt_params()
756 STACK_OF(BIGNUM) *coeffs) in DEFINE_STACK_OF()
763 if (primes == NULL || exps == NULL || coeffs == NULL) in DEFINE_STACK_OF()
[all …]
H A Drsa_backend.c70 STACK_OF(BIGNUM) *factors = NULL, *exps = NULL, *coeffs = NULL; in ossl_rsa_fromdata()
128 || !collect_numbers(coeffs = sk_BIGNUM_new_null(), params, in ossl_rsa_fromdata()
133 && sk_BIGNUM_num(coeffs) == 0) { in ossl_rsa_fromdata()
189 coeffs)) { in ossl_rsa_fromdata()
198 if (!ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) { in ossl_rsa_fromdata()
216 && !ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) in ossl_rsa_fromdata()
222 || sk_BIGNUM_num(coeffs) != 0) { in ossl_rsa_fromdata()
226 sk_BIGNUM_num(coeffs)); in ossl_rsa_fromdata()
241 sk_BIGNUM_free(coeffs); in ossl_rsa_fromdata()
253 sk_BIGNUM_pop_free(coeffs, BN_clear_free); in ossl_rsa_fromdata()
[all …]
H A Drsa_gen.c86 STACK_OF(BIGNUM) *coeffs) in DEFINE_STACK_OF()
231 if (!sk_BIGNUM_insert(coeffs, iqmp, sk_BIGNUM_num(coeffs))) in DEFINE_STACK_OF()
244 if (!sk_BIGNUM_insert(coeffs, newcoeff, sk_BIGNUM_num(coeffs))) in DEFINE_STACK_OF()
275 STACK_OF(BIGNUM) *coeffs = NULL; in rsa_multiprime_keygen()
308 coeffs = sk_BIGNUM_new_null(); in rsa_multiprime_keygen()
309 if (coeffs == NULL) in rsa_multiprime_keygen()
564 factors, exps, coeffs)) in rsa_multiprime_keygen()
579 rsa->iqmp = sk_BIGNUM_delete(coeffs, 0); in rsa_multiprime_keygen()
590 tmp = sk_BIGNUM_delete(coeffs, 0); in rsa_multiprime_keygen()
600 sk_BIGNUM_free(coeffs); in rsa_multiprime_keygen()
/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 Dv_exp.sollya18 // first 2 coeffs are fixed, iteratively find optimal double prec coeffs
29 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 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 Dsinpi.sollya22 // first coeff is predefine, iteratively find optimal double prec coeffs
32 print("coeffs:");
H A Dv_sin.sollya25 // first coeff is fixed, iteratively find optimal double prec coeffs
35 print("coeffs:");
H A Dv_log2f.sollya27 // first coeff is fixed, iteratively find optimal double prec coeffs
37 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_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:");
/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/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.c467 STACK_OF(BIGNUM_const) *coeffs = NULL; in rsa_to_text()
479 coeffs = sk_BIGNUM_const_new_null(); in rsa_to_text()
481 if (factors == NULL || exps == NULL || coeffs == NULL) { in rsa_to_text()
497 ossl_rsa_get0_all_params((RSA *)rsa, factors, exps, coeffs); in rsa_to_text()
534 sk_BIGNUM_const_value(coeffs, 0))) in rsa_to_text()
550 sk_BIGNUM_const_value(coeffs, i - 1))) in rsa_to_text()
611 sk_BIGNUM_const_free(coeffs); in rsa_to_text()

123