diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-04-26 01:54:27 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-04-26 01:54:27 +0200 |
commit | 6f169a3d86aeb9f0c4f942ba8a8978d16e3f5bd7 (patch) | |
tree | a14790cf96bb9292f1f89acacc80f732e85dfca9 /gmp-impl.h | |
parent | 4c27abb31ff1653e248cf73066d8db74e0340b2b (diff) | |
download | gmp-6f169a3d86aeb9f0c4f942ba8a8978d16e3f5bd7.tar.gz |
Use a library version of invert_limb if available.
This replaces an alpha specific bit, but currently alpha is the only
arch using this.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r-- | gmp-impl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 2f9491884..f24142d3d 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -473,9 +473,11 @@ extern mp_size_t __gmp_default_fp_limb_precision; #define TARGET_REGISTER_STARVED 0 #endif -#if defined (__alpha) -mp_limb_t __MPN(invert_limb) (); -#define invert_limb(invxl,xl) invxl = __MPN(invert_limb) (xl) +/* Use a library function for invert_limb, if available. */ +#if ! defined (invert_limb) && HAVE_NATIVE_mpn_invert_limb +#define mpn_invert_limb __MPN(invert_limb) +mp_limb_t mpn_invert_limb _PROTO ((mp_limb_t)); +#define invert_limb(invxl,xl) (invxl = __MPN(invert_limb) (xl)) #endif #ifndef invert_limb |