Lines Matching refs:mu
1304 a decent speedup over straight division. First a $\mu$ value must be precomputed with the following function.
1311 Given a modulus in $b$ this produces the required $\mu$ value in $a$. For any given modulus this only has to
1319 This will reduce $a$ in place modulo $b$ with the precomputed $\mu$ value in $c$. $a$ must be in the range
1325 mp_int a, b, c, mu;
1328 /* initialize a,b to desired values, mp_init mu,
1332 /* get mu value */
1333 if ((result = mp_reduce_setup(&mu, b)) != MP_OKAY) \{
1334 printf("Error getting mu. \%s",
1347 if ((result = mp_reduce(&c, &b, &mu)) != MP_OKAY) \{
1361 if ((result = mp_reduce(&c, &b, &mu)) != MP_OKAY) \{