summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-28 20:59:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-28 20:59:03 (GMT)
commitabf9722f425fcd4a8327dddaf5c5ccf08b1d30d6 (patch)
treef7fcce47ca0f81f1eb0ec24efb9e34025ae158eb /generic/tclTomMath.h
parentd74f47cb2ad9e4fa4b038c1a2205f3e8becc2af0 (diff)
downloadtcl-abf9722f425fcd4a8327dddaf5c5ccf08b1d30d6.zip
tcl-abf9722f425fcd4a8327dddaf5c5ccf08b1d30d6.tar.gz
tcl-abf9722f425fcd4a8327dddaf5c5ccf08b1d30d6.tar.bz2
Turn KARATSUBA_MUL_CUTOFF (insize libtommath) et al into a #define in stead of exported int symbols.
Diffstat (limited to 'generic/tclTomMath.h')
-rw-r--r--generic/tclTomMath.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/generic/tclTomMath.h b/generic/tclTomMath.h
index 0541ad8..3f23fd6 100644
--- a/generic/tclTomMath.h
+++ b/generic/tclTomMath.h
@@ -25,7 +25,7 @@ extern "C" {
#endif
/* MS Visual C++ doesn't have a 128bit type for words, so fall back to 32bit MPI's (where words are 64bit) */
-#if defined(_MSC_VER) || defined(__LLP64__) || defined(__e2k__) || defined(__LCC__)
+#if defined(_WIN32) || defined(__LLP64__) || defined(__e2k__) || defined(__LCC__)
# define MP_32BIT
#endif
@@ -110,9 +110,6 @@ typedef unsigned long long mp_word;
/* otherwise the bits per digit is calculated automatically from the size of a mp_digit */
#ifndef DIGIT_BIT
# define DIGIT_BIT (((CHAR_BIT * MP_SIZEOF_MP_DIGIT) - 1)) /* bits per digit */
-typedef unsigned long mp_min_u32;
-#else
-typedef mp_digit mp_min_u32;
#endif
#define MP_DIGIT_BIT DIGIT_BIT
@@ -142,14 +139,6 @@ typedef mp_digit mp_min_u32;
typedef int mp_err;
-/* you'll have to tune these... */
-#if defined(BUILD_tcl) || !defined(_WIN32)
-MODULE_SCOPE int KARATSUBA_MUL_CUTOFF,
- KARATSUBA_SQR_CUTOFF,
- TOOM_MUL_CUTOFF,
- TOOM_SQR_CUTOFF;
-#endif
-
/* define this to use lower memory usage routines (exptmods mostly) */
/* #define MP_LOW_MEM */