summaryrefslogtreecommitdiff
path: root/src/mpc-impl.h
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-17 17:40:38 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-17 17:40:38 +0000
commit8f669fde281f3512784a5c53e3c8a1a87e5c283d (patch)
tree80af8ef84f59bcb51d8a51720b64edfc699035e5 /src/mpc-impl.h
parentcdae67dc9bf52fd118eff5ea82462fef46691143 (diff)
downloadmpc-8f669fde281f3512784a5c53e3c8a1a87e5c283d.tar.gz
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
Diffstat (limited to 'src/mpc-impl.h')
-rw-r--r--src/mpc-impl.h3
1 files changed, 2 insertions, 1 deletions
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*));