1 /* LibTomPoly, Polynomial Basis Math -- Tom St Denis
3 * LibTomPoly is a public domain library that provides
4 * polynomial basis arithmetic support. It relies on
5 * LibTomMath for large integer support.
7 * This library is free for all purposes without any
8 * express guarantee that it works.
10 * Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
14 void pb_clamp(pb_poly
*a
)
16 while (a
->used
> 0 && (mp_iszero(&(a
->terms
[a
->used
-1])) == MP_YES
)) {