Home
last modified time | relevance | path

Searched refs:coeff (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/crypto/openssl/crypto/ml_dsa/
H A Dml_dsa_poly.h15 uint32_t coeff[ML_DSA_NUM_POLY_COEFFICIENTS]; member
21 memset(p->coeff, 0, sizeof(*p)); in poly_zero()
39 out->coeff[i] = reduce_once(lhs->coeff[i] + rhs->coeff[i]); in poly_add()
57 out->coeff[i] = mod_sub(lhs->coeff[i], rhs->coeff[i]); in poly_sub()
107 ossl_ml_dsa_key_compress_power2_round(t->coeff[i], in poly_power2_round()
108 t1->coeff + i, t0->coeff + i); in poly_power2_round()
117 out->coeff[i] = (in->coeff[i] << ML_DSA_D_BITS); in poly_scale_power2_round()
126 out->coeff[i] = ossl_ml_dsa_key_compress_high_bits(in->coeff[i], gamma2); in poly_high_bits()
135 out->coeff[i] = ossl_ml_dsa_key_compress_low_bits(in->coeff[i], gamma2); in poly_low_bits()
145 out->coeff[i] = ossl_ml_dsa_key_compress_make_hint(ct0->coeff[i], in poly_make_hint()
[all …]
H A Dml_dsa_ntt.c116 out->coeff[i] = reduce_montgomery((uint64_t)lhs->coeff[i] * (uint64_t)rhs->coeff[i]); in ossl_ml_dsa_poly_ntt_mult()
142 uint32_t w_even = p->coeff[j]; in ossl_ml_dsa_poly_ntt()
144 * (uint64_t)p->coeff[j + offset]); in ossl_ml_dsa_poly_ntt()
146 p->coeff[j] = reduce_once(w_even + t_odd); in ossl_ml_dsa_poly_ntt()
147 p->coeff[j + offset] = mod_sub(w_even, t_odd); in ossl_ml_dsa_poly_ntt()
181 uint32_t even = p->coeff[j]; in ossl_ml_dsa_poly_ntt_inverse()
182 uint32_t odd = p->coeff[j + offset]; in ossl_ml_dsa_poly_ntt_inverse()
184 p->coeff[j] = reduce_once(odd + even); in ossl_ml_dsa_poly_ntt_inverse()
185 p->coeff[j + offset] = reduce_montgomery((uint64_t)step_root in ossl_ml_dsa_poly_ntt_inverse()
192 … p->coeff[i] = reduce_montgomery((uint64_t)p->coeff[i] * (uint64_t)inverse_degree_montgomery); in ossl_ml_dsa_poly_ntt_inverse()
H A Dml_dsa_sample.c131 if (coeff_from_three_bytes(b, &(out->coeff[j]))) { in rej_ntt_poly()
175 if (coef_from_nibble(z0, &out->coeff[j]) in rej_bounded_poly()
178 if (coef_from_nibble(z1, &out->coeff[j]) in rej_bounded_poly()
352 out_c->coeff[end] = out_c->coeff[index]; in ossl_ml_dsa_poly_sample_in_ball()
354 out_c->coeff[index] = mod_sub(1, 2 * (signs & 1)); in ossl_ml_dsa_poly_sample_in_ball()
H A Dml_dsa_encoders.c56 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_4_bits()
93 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_6_bits()
133 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_10_bits()
166 uint32_t *out = p->coeff, *end = out + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_decode_10_bits()
202 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_signed_4()
228 uint32_t v, *out = p->coeff; in poly_decode_signed_4()
290 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_signed_2()
326 uint32_t u = 0, v = 0, *out = p->coeff; in poly_decode_signed_2()
389 const uint32_t *in = p->coeff, *end = in + ML_DSA_NUM_POLY_COEFFICIENTS; in poly_encode_signed_two_to_power_12()
426 uint32_t *out = p->coeff; in poly_decode_signed_two_to_power_12()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz_math_impl.h47 raidz_rec_q_coeff(const raidz_row_t *rr, const int *tgtidx, unsigned *coeff) in raidz_rec_q_coeff() argument
52 coeff[MUL_Q_X] = gf_exp2(255 - (ncols - x - 1)); in raidz_rec_q_coeff()
56 raidz_rec_r_coeff(const raidz_row_t *rr, const int *tgtidx, unsigned *coeff) in raidz_rec_r_coeff() argument
61 coeff[MUL_R_X] = gf_exp4(255 - (ncols - x - 1)); in raidz_rec_r_coeff()
65 raidz_rec_pq_coeff(const raidz_row_t *rr, const int *tgtidx, unsigned *coeff) in raidz_rec_pq_coeff() argument
76 coeff[MUL_PQ_X] = gf_div(a, e); in raidz_rec_pq_coeff()
77 coeff[MUL_PQ_Y] = gf_div(b, e); in raidz_rec_pq_coeff()
81 raidz_rec_pr_coeff(const raidz_row_t *rr, const int *tgtidx, unsigned *coeff) in raidz_rec_pr_coeff() argument
93 coeff[MUL_PR_X] = gf_div(a, e); in raidz_rec_pr_coeff()
94 coeff[MUL_PR_Y] = gf_div(b, e); in raidz_rec_pr_coeff()
[all …]
/freebsd/contrib/arm-optimized-routines/math/tools/
H A Dasinh.sollya7 // we use 2^-6 as the lower bound for coeff generation, which yields sufficiently
22 poly = poly + x^i*coeff(p,0);
28 for i from 0 to deg do coeff(poly,i);
H A Dcos.sollya19 // first coeff is fixed, iteratively find optimal double prec coeffs
23 poly = poly + x^(2*i)*coeff(p,0);
31 for i from 0 to deg do coeff(poly,i);
H A Dv_sin.sollya25 // first coeff is fixed, iteratively find optimal double prec coeffs
29 poly = poly + x^(2*i)*coeff(p,0);
36 for i from 0 to deg do coeff(poly,i);
H A Dsincosf.sollya21 // first coeff is fixed, iteratively find optimal double prec coeffs
25 poly = poly + x^(2*i)*coeff(p,0);
33 for i from 0 to deg do coeff(poly,i);
H A Dsinpi.sollya22 // first coeff is predefine, iteratively find optimal double prec coeffs
26 poly = poly + x^(2*i+1)*coeff(p,0);
33 for i from 0 to deg do coeff(poly,i);
H A Dsin.sollya25 // first coeff is fixed, iteratively find optimal double prec coeffs
29 poly = poly + x^(2*i)*coeff(p,0);
37 for i from 0 to deg do coeff(poly,i);
H A Dlog.sollya24 // first coeff is fixed, iteratively find optimal double prec coeffs
28 poly = poly + x^i*coeff(p,0);
35 for i from 0 to deg do coeff(poly,i);
H A Dv_log.sollya23 // first coeff is fixed, iteratively find optimal double prec coeffs
27 poly = poly + x^i*coeff(p,0);
34 for i from 0 to deg do coeff(poly,i);
H A Dv_log2f.sollya27 // first coeff is fixed, iteratively find optimal double prec coeffs
31 poly = poly + x^i*coeff(p,0);
38 for i from 0 to deg do coeff(poly,i);
H A Dsincos.sollya21 // first coeff is fixed, iteratively find optimal double prec coeffs
25 poly = poly + x^(2*i)*coeff(p,0);
33 for i from 0 to deg do coeff(poly,i);
H A Dlog_abs.sollya19 // first coeff is fixed, iteratively find optimal double prec coeffs
23 poly = poly + x^i*coeff(p,0);
35 for i from 0 to deg do coeff(poly,i);
H A Dv_log10.sollya23 // first coeff is fixed, iteratively find optimal double prec coeffs
27 poly = poly + x^i*coeff(p,0);
38 for i from 0 to deg do double(coeff(poly,i));
H A Dlog10f.sollya26 // first coeff is fixed, iteratively find optimal double prec coeffs
30 poly = poly + x^i*coeff(p,0);
37 for i from 0 to deg do double(coeff(poly,i));
H A Dlog2.sollya29 // first coeff is fixed, iteratively find optimal double prec coeffs
33 poly = poly + x^i*coeff(p,0);
42 for i from 0 to deg do coeff(poly,i);
H A Dlog2_abs.sollya23 // first coeff is fixed, iteratively find optimal double prec coeffs
27 poly = poly + x^i*coeff(p,0);
41 for i from 0 to deg do coeff(poly,i);
H A Dv_log10f.sollya31 // first coeff is fixed, iteratively find optimal double prec coeffs
35 poly = poly + x^i*coeff(p,0);
42 for i from 0 to deg do single(coeff(poly,i));
H A Dlog10.sollya29 // first coeff is fixed, iteratively find optimal double prec coeffs
33 poly = poly + x^i*coeff(p,0);
41 for i from 0 to deg do coeff(poly,i);
H A Dexp2.sollya31 // first coeff is fixed, iteratively find optimal double prec coeffs
36 poly = poly + x^i*coeff(p,0);
48 for i from 0 to deg do coeff(poly,i);
H A Dexp10.sollya34 // first coeff is fixed, iteratively find optimal double prec coeffs
39 poly = poly + x^i*coeff(p,0);
47 for i from 0 to deg do coeff(poly,i);
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_reset.c63 u_int32_t num_chains, struct coeff_t *coeff, HAL_BOOL is_cal_reusable);
5782 struct coeff_t *coeff, HAL_BOOL is_cal_reusable) in ar9300_tx_iq_cal_outlier_detection() argument
5840 magnitude = coeff->mag_coeff[ch_idx][im][0]; in ar9300_tx_iq_cal_outlier_detection()
5841 phase = coeff->phs_coeff[ch_idx][im][0]; in ar9300_tx_iq_cal_outlier_detection()
5864 magnitude = coeff->mag_coeff[ch_idx][im][0]; in ar9300_tx_iq_cal_outlier_detection()
5865 phase = coeff->phs_coeff[ch_idx][im][0]; in ar9300_tx_iq_cal_outlier_detection()
5891 coeff->mag_coeff[ch_idx][outlier_mag_idx][0] = magnitude_avg; in ar9300_tx_iq_cal_outlier_detection()
5892 coeff->phs_coeff[ch_idx][outlier_mag_idx][0] = phase_avg; in ar9300_tx_iq_cal_outlier_detection()
5907 coeff->mag_coeff[ch_idx][outlier_phs_idx][0] = magnitude_avg; in ar9300_tx_iq_cal_outlier_detection()
5908 coeff->phs_coeff[ch_idx][outlier_phs_idx][0] = phase_avg; in ar9300_tx_iq_cal_outlier_detection()
[all …]

123