From 12fa21f5b2ca0523504e0e9428e67263e66a5732 Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 30 Apr 2014 17:16:50 +0200 Subject: [PATCH] POLY: make get_degree() public --- src/poly.c | 3 +-- src/poly.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/poly.c b/src/poly.c index 3ee3341..b5b6dd7 100644 --- a/src/poly.c +++ b/src/poly.c @@ -35,7 +35,6 @@ /* * static declarations */ -static unsigned int get_degree(pb_poly const * const poly); static void pb_mod2_to_modq(pb_poly * const a, pb_poly *Fq, ntru_context *ctx); @@ -275,7 +274,7 @@ void pb_xor(pb_poly *a, * @param poly the polynomial * @return the degree */ -static unsigned int get_degree(pb_poly const * const poly) +unsigned int get_degree(pb_poly const * const poly) { unsigned int count = 0; diff --git a/src/poly.h b/src/poly.h index 4f3beea..9c2f988 100644 --- a/src/poly.h +++ b/src/poly.h @@ -31,6 +31,9 @@ #include #include + +unsigned int get_degree(pb_poly const * const poly); + #define MP_SET(...) mp_set(__VA_ARGS__) #define MP_SET_INT(...) \