Merge pull request #4 from thesamesam/develop
[libtompoly.git] / pb_zero.c
blobca51a9126af98aef55896b1d604fb6b629ec4ebe
1 /* LibTomPoly, Polynomial Basis Math -- Tom St Denis
2 *
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
12 #include <tompoly.h>
14 void pb_zero(pb_poly *a)
16 int x;
17 for (x = 0; x < a->used; x++) {
18 mp_zero(&(a->terms[x]));
20 a->used = 0;