| /freebsd/crypto/openssl/crypto/ml_dsa/ |
| H A D | ml_dsa_poly.h | 15 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 D | ml_dsa_ntt.c | 116 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 D | ml_dsa_sample.c | 131 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 D | ml_dsa_encoders.c | 56 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 D | vdev_raidz_math_impl.h | 47 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 D | asinh.sollya | 7 // 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 D | cos.sollya | 19 // 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 D | v_sin.sollya | 25 // 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 D | sincosf.sollya | 21 // 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 D | sinpi.sollya | 22 // 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 D | sin.sollya | 25 // 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 D | log.sollya | 24 // 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 D | v_log.sollya | 23 // 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 D | v_log2f.sollya | 27 // 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 D | sincos.sollya | 21 // 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 D | log_abs.sollya | 19 // 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 D | v_log10.sollya | 23 // 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 D | log10f.sollya | 26 // 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 D | log2.sollya | 29 // 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 D | log2_abs.sollya | 23 // 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 D | v_log10f.sollya | 31 // 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 D | log10.sollya | 29 // 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 D | exp2.sollya | 31 // 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 D | exp10.sollya | 34 // 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 D | ar9300_reset.c | 63 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 …]
|