diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index 8bbb464..bbbb2ba 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -273,14 +273,18 @@ namespace ttmath if the size of a vector is smaller than TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE the Karatsuba algorithm will use standard schoolbook multiplication */ -#ifdef __GNUC__ -#define TTMATH_USE_KARATSUBA_MULTIPLICATION_FROM_SIZE 3 +#ifdef TTMATH_DEBUG_LOG + // 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 -#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 - /*! 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