diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2010-06-17 17:40:38 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2010-06-17 17:40:38 +0000 |
commit | 8f669fde281f3512784a5c53e3c8a1a87e5c283d (patch) | |
tree | 80af8ef84f59bcb51d8a51720b64edfc699035e5 /src/mpc-impl.h | |
parent | cdae67dc9bf52fd118eff5ea82462fef46691143 (diff) | |
download | mpc-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.h | 3 |
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*)); |