diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:59:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-28 10:59:15 (GMT) |
commit | a89db22d3ad1164ad5e73cfc5c4cd6fe8a622ae6 (patch) | |
tree | 4f54b5a57ac2d05c05a9497285dc2175fe7411f5 /libtommath | |
parent | 208f8c30a1c20162f7ec27c09afb7818153f254d (diff) | |
parent | 2c4c86775dd5719827e342f458cbe4724a0f0b4a (diff) | |
download | tcl-a89db22d3ad1164ad5e73cfc5c4cd6fe8a622ae6.zip tcl-a89db22d3ad1164ad5e73cfc5c4cd6fe8a622ae6.tar.gz tcl-a89db22d3ad1164ad5e73cfc5c4cd6fe8a622ae6.tar.bz2 |
Merge 8.7
Diffstat (limited to 'libtommath')
-rw-r--r-- | libtommath/bn_mp_mul.c | 2 | ||||
-rw-r--r-- | libtommath/tommath.h | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/libtommath/bn_mp_mul.c b/libtommath/bn_mp_mul.c index b00334d..c40feac 100644 --- a/libtommath/bn_mp_mul.c +++ b/libtommath/bn_mp_mul.c @@ -19,7 +19,7 @@ mp_err mp_mul(const mp_int *a, const mp_int *b, mp_int *c) * The bigger one needs to be at least about one MP_KARATSUBA_MUL_CUTOFF bigger * to make some sense, but it depends on architecture, OS, position of the * stars... so YMMV. - * Using it to cut the input into slices small enough for fast_s_mp_mul_digs + * Using it to cut the input into slices small enough for s_mp_mul_digs_fast * was actually slower on the author's machine, but YMMV. */ (min_len >= MP_KARATSUBA_MUL_CUTOFF) && diff --git a/libtommath/tommath.h b/libtommath/tommath.h index 1094641..4bd8f6c 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -237,13 +237,22 @@ TOOM_SQR_CUTOFF; #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 405) # define MP_DEPRECATED(x) __attribute__((deprecated("replaced by " #x))) +#elif defined(_MSC_VER) && _MSC_VER >= 1500 +# define MP_DEPRECATED(x) __declspec(deprecated("replaced by " #x)) +#else +# define MP_DEPRECATED(x) +#endif + +#ifndef MP_NO_DEPRECATED_PRAGMA +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301) # define PRIVATE_MP_DEPRECATED_PRAGMA(s) _Pragma(#s) # define MP_DEPRECATED_PRAGMA(s) PRIVATE_MP_DEPRECATED_PRAGMA(GCC warning s) #elif defined(_MSC_VER) && _MSC_VER >= 1500 -# define MP_DEPRECATED(x) __declspec(deprecated("replaced by " #x)) # define MP_DEPRECATED_PRAGMA(s) __pragma(message(s)) -#else -# define MP_DEPRECATED(s) +#endif +#endif + +#ifndef MP_DEPRECATED_PRAGMA # define MP_DEPRECATED_PRAGMA(s) #endif |