diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-02-08 13:53:09 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-02-08 13:53:09 +0000 |
commit | c23773a678564573b7d4ff6ef4df83f06d327805 (patch) | |
tree | e68c7cf677f9d15b7bb57b0c18cf956c7bc07df5 /mpfr-gmp.h | |
parent | 45df254af980fb80eb57ff757f33a6f3a8334b25 (diff) | |
download | mpfr-c23773a678564573b7d4ff6ef4df83f06d327805.tar.gz |
mpfr-gmp.h: Cancel r5261 changes removing the overload due to added test.
set_uj.c: Don't call memset when len is zero.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5269 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-gmp.h')
-rw-r--r-- | mpfr-gmp.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mpfr-gmp.h b/mpfr-gmp.h index 8fd395975..56869050f 100644 --- a/mpfr-gmp.h +++ b/mpfr-gmp.h @@ -92,13 +92,7 @@ extern "C" { #define SHRT_HIGHBIT SHRT_MIN /* MP_LIMB macros */ -#define MPN_ZERO(dst, n) \ - do \ - { \ - if (n) \ - memset((dst), 0, (n)*BYTES_PER_MP_LIMB); \ - } \ - while (0) +#define MPN_ZERO(dst, n) memset((dst), 0, (n)*BYTES_PER_MP_LIMB) #define MPN_COPY_DECR(dst,src,n) memmove((dst),(src),(n)*BYTES_PER_MP_LIMB) #define MPN_COPY_INCR(dst,src,n) memmove((dst),(src),(n)*BYTES_PER_MP_LIMB) #define MPN_COPY(dst,src,n) \ |