diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-07-06 03:19:05 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-07-06 03:19:05 +0200 |
commit | b6d7b944fa6b8e75c6ce447ff24d431f0950d495 (patch) | |
tree | 2bbbf6a353c093eb051605bb1952adf3d200f166 /mpn/sparc32 | |
parent | f1b5692be38a751de44542c09e28e4410d4ed63e (diff) | |
download | gmp-b6d7b944fa6b8e75c6ce447ff24d431f0950d495.tar.gz |
* mpn/sparc64/gmp-mparam.h: Update thresholds.
* mpn/sparc32/v9/gmp-mparam.h: Ditto.
KARATSUBA_MUL_THRESHOLD about the same, KARATSUBA_SQR_THRESHOLD a bit
smaller.
Diffstat (limited to 'mpn/sparc32')
-rw-r--r-- | mpn/sparc32/v9/gmp-mparam.h | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/mpn/sparc32/v9/gmp-mparam.h b/mpn/sparc32/v9/gmp-mparam.h index e4eff1f06..23c3e8e2b 100644 --- a/mpn/sparc32/v9/gmp-mparam.h +++ b/mpn/sparc32/v9/gmp-mparam.h @@ -26,7 +26,44 @@ MA 02111-1307, USA. */ #define BITS_PER_SHORTINT 16 #define BITS_PER_CHAR 8 + /* These values are for UltraSPARC I, II, and IIi. It is bogus that this file lives in v9, but that will do for now. */ -#define KARATSUBA_MUL_THRESHOLD 28 -#define KARATSUBA_SQR_THRESHOLD 92 + +/* Variations in addmul_1 speed make the multiply and square thresholds + doubtful. TOOM3_SQR_THRESHOLD had to be estimated here. */ + +/* Generated by tuneup.c, 2000-07-06. */ + +#ifndef KARATSUBA_MUL_THRESHOLD +#define KARATSUBA_MUL_THRESHOLD 30 +#endif +#ifndef TOOM3_MUL_THRESHOLD +#define TOOM3_MUL_THRESHOLD 200 +#endif + +#ifndef KARATSUBA_SQR_THRESHOLD +#define KARATSUBA_SQR_THRESHOLD 59 +#endif +#ifndef TOOM3_SQR_THRESHOLD +#define TOOM3_SQR_THRESHOLD 500 +#endif + +#ifndef BZ_THRESHOLD +#define BZ_THRESHOLD 107 +#endif + +#ifndef FIB_THRESHOLD +#define FIB_THRESHOLD 146 +#endif + +#ifndef POWM_THRESHOLD +#define POWM_THRESHOLD 29 +#endif + +#ifndef GCD_ACCEL_THRESHOLD +#define GCD_ACCEL_THRESHOLD 4 +#endif +#ifndef GCDEXT_THRESHOLD +#define GCDEXT_THRESHOLD 3 +#endif |