Home
last modified time | relevance | path

Searched refs:mod_s (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/lib/
H A Dbch.c315 static inline int mod_s(struct bch_control *bch, unsigned int v) in mod_s() function
344 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
350 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
356 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
377 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
569 (a ? bch->a_pow_tab[mod_s(bch, k)] : 0)^ in find_affine4_roots()
570 (b ? bch->a_pow_tab[mod_s(bch, j)] : 0); in find_affine4_roots()
598 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
752 rep[i] = a->c[i] ? mod_s(bch, a_log(bch, a->c[i])+l) : -1; in gf_poly_logrep()
781 c[p] ^= bch->a_pow_tab[mod_s(bch, in gf_poly_mod()
[all …]
/openbmc/linux/lib/
H A Dbch.c302 static inline int mod_s(struct bch_control *bch, unsigned int v) in mod_s() function
331 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
337 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
343 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
364 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
556 (a ? bch->a_pow_tab[mod_s(bch, k)] : 0)^ in find_affine4_roots()
557 (b ? bch->a_pow_tab[mod_s(bch, j)] : 0); in find_affine4_roots()
585 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
739 rep[i] = a->c[i] ? mod_s(bch, a_log(bch, a->c[i])+l) : -1; in gf_poly_logrep()
768 c[p] ^= bch->a_pow_tab[mod_s(bch, in gf_poly_mod()
[all …]
/openbmc/qemu/tests/tcg/mips/include/
H A Dwrappers_msa.h514 DO_MSA__WD__WS_WT(MOD_S_B, mod_s.b)
515 DO_MSA__WD__WS_WT(MOD_S_H, mod_s.h)
516 DO_MSA__WD__WS_WT(MOD_S_W, mod_s.w)
517 DO_MSA__WD__WS_WT(MOD_S_D, mod_s.d)