X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/578a86d91941a0f722b87973d88e84ec2cf9a608..a69a3efddbe1261f55e90d4ff477053ab80663a5:/f-binpoly.c diff --git a/f-binpoly.c b/f-binpoly.c index 4282ad4..8fae42a 100644 --- a/f-binpoly.c +++ b/f-binpoly.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: f-binpoly.c,v 1.9 2004/04/08 01:36:15 mdw Exp $ + * $Id$ * * Binary fields with polynomial basis representation * @@ -52,7 +52,7 @@ static void fdestroy(field *ff) static mp *frand(field *f, mp *d, grand *r) { return (mprand(d, f->nbits, r, 0)); } -static int fzerop(field *ff, mp *x) { return (!MP_LEN(x)); } +static int fzerop(field *ff, mp *x) { return (MP_ZEROP(x)); } static mp *fadd(field *ff, mp *d, mp *x, mp *y) { return (gf_add(d, x, y)); }