X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/e40955b56456a6191ebff48b00c667a0674b3bdb..f4535c6454395e6d56ce0091a07b6d4f7d54a47f:/gf-arith.c diff --git a/gf-arith.c b/gf-arith.c index c23aa19..f380a35 100644 --- a/gf-arith.c +++ b/gf-arith.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: gf-arith.c,v 1.4 2004/04/08 01:36:15 mdw Exp $ + * $Id$ * * Basic arithmetic on binary polynomials * @@ -230,6 +230,7 @@ static int verify(const char *op, mp *expect, mp *result, mp *a, mp *b) RIG(add, gf_add) RIG(mul, gf_mul) +RIG(exp, gf_exp) #undef RIG @@ -285,6 +286,7 @@ static test_chunk tests[] = { { "mul", tmul, { &type_mp, &type_mp, &type_mp, 0 } }, { "sqr", tsqr, { &type_mp, &type_mp, 0 } }, { "div", tdiv, { &type_mp, &type_mp, &type_mp, &type_mp, 0 } }, + { "exp", texp, { &type_mp, &type_mp, &type_mp, 0 } }, { "irred", tirred, { &type_mp, &type_int, 0 } }, { 0, 0, { 0 } }, };