changed: if TTMATH_DEBUG_LOG is defined then TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE is always 3

(regardless of the compiler)


git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@202 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2009-09-20 20:41:11 +00:00
parent 4c0d8c26ff
commit 31b8c242bd
1 changed files with 8 additions and 4 deletions

View File

@ -273,14 +273,18 @@ namespace ttmath
if the size of a vector is smaller than TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE if the size of a vector is smaller than TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE
the Karatsuba algorithm will use standard schoolbook multiplication the Karatsuba algorithm will use standard schoolbook multiplication
*/ */
#ifdef __GNUC__ #ifdef TTMATH_DEBUG_LOG
#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 3 // if TTMATH_DEBUG_LOG is defined then we should use the same size regardless of the compiler
#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 3
#else #else
#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 5 #ifdef __GNUC__
#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 3
#else
#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 5
#endif
#endif #endif
/*! /*!
this is a special value used when calculating the Gamma(x) function this is a special value used when calculating the Gamma(x) function
if x is greater than this value then the Gamma(x) will be calculated using if x is greater than this value then the Gamma(x) will be calculated using