add missing macro (and revert test mod of .travis.yml)

This commit is contained in:
Brian Gladman 2018-02-28 15:12:24 +00:00
parent 0fcb6412ae
commit c3c33b1560
2 changed files with 16 additions and 2 deletions

View File

@ -11,7 +11,7 @@ addons:
packages: packages:
- yasm - yasm
- texinfo - texinfo
script: script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then - if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update; brew update;
brew install yasm; brew install yasm;

View File

@ -592,7 +592,21 @@ __GMP_DECLSPEC void __gmp_tmp_debug_free(const char *, int, int,
(yp) = (xp) + (xsize); \ (yp) = (xp) + (xsize); \
} \ } \
} while (0) } while (0)
#define TMP_ALLOC_LIMBS_3(xp,xsize, yp,ysize, zp,zsize) \
do { \
if (WANT_TMP_DEBUG) \
{ \
(xp) = TMP_ALLOC_LIMBS (xsize); \
(yp) = TMP_ALLOC_LIMBS (ysize); \
(zp) = TMP_ALLOC_LIMBS (zsize); \
} \
else \
{ \
(xp) = TMP_ALLOC_LIMBS ((xsize) + (ysize) + (zsize)); \
(yp) = (xp) + (xsize); \
(zp) = (yp) + (ysize); \
} \
} while (0)
/* From mpir.h, nicer names for internal use. */ /* From mpir.h, nicer names for internal use. */
#define MPN_CMP(result, xp, yp, size) __GMPN_CMP(result, xp, yp, size) #define MPN_CMP(result, xp, yp, size) __GMPN_CMP(result, xp, yp, size)