From 8f669fde281f3512784a5c53e3c8a1a87e5c283d Mon Sep 17 00:00:00 2001 From: enge Date: Thu, 17 Jun 2010 17:40:38 +0000 Subject: unified computation of pow_ui and pow_si in a function pow_usi, thereby applying binary exponentiation in the case of negative exponent git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@788 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- src/mpc-impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mpc-impl.h') diff --git a/src/mpc-impl.h b/src/mpc-impl.h index 41a899f..e1e8444 100644 --- a/src/mpc-impl.h +++ b/src/mpc-impl.h @@ -136,8 +136,9 @@ do { \ extern "C" { #endif -__MPC_DECLSPEC int mpc_mul_naive __MPC_PROTO ((mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); +__MPC_DECLSPEC int mpc_mul_naive __MPC_PROTO ((mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); __MPC_DECLSPEC int mpc_mul_karatsuba __MPC_PROTO ((mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); +__MPC_DECLSPEC int mpc_pow_usi __MPC_PROTO ((mpc_ptr, mpc_srcptr, unsigned long, int, mpc_rnd_t)); __MPC_DECLSPEC char* mpc_alloc_str __MPC_PROTO ((size_t)); __MPC_DECLSPEC char* mpc_realloc_str __MPC_PROTO ((char*, size_t, size_t)); __MPC_DECLSPEC void mpc_free_str __MPC_PROTO ((char*)); -- cgit v1.2.1