From 42d5f245d5b0fc7503e9dd1ec620f6243aa54dbf Mon Sep 17 00:00:00 2001 From: wbhart Date: Tue, 2 Jun 2009 21:25:21 +0000 Subject: [PATCH] Added powerpc7455 tuning values. --- mpn/powerpc32/gmp-mparam.h | 39 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/mpn/powerpc32/gmp-mparam.h b/mpn/powerpc32/gmp-mparam.h index 1af738cc..9f5a4084 100644 --- a/mpn/powerpc32/gmp-mparam.h +++ b/mpn/powerpc32/gmp-mparam.h @@ -31,25 +31,29 @@ MA 02110-1301, USA. */ In mpn/powerpc32/750/gmp-mparam.h there are values for 75x (G3) and for 7400/7410 (G4), both which have much slower multiply instructions. */ -/* Generated by tuneup.c, 2006-03-18, gcc 3.4 */ +/* Generated by tuneup.c, 2009-06-02, gcc 4.1 */ #define MUL_KARATSUBA_THRESHOLD 14 #define MUL_TOOM3_THRESHOLD 73 +#define MUL_TOOM4_THRESHOLD 169 +#define MUL_TOOM7_THRESHOLD 321 #define SQR_BASECASE_THRESHOLD 0 /* always */ #define SQR_KARATSUBA_THRESHOLD 26 -#define SQR_TOOM3_THRESHOLD 81 +#define SQR_TOOM3_THRESHOLD 85 +#define SQR_TOOM4_THRESHOLD 195 +#define SQR_TOOM7_THRESHOLD 363 #define MULLOW_BASECASE_THRESHOLD 0 /* always */ -#define MULLOW_DC_THRESHOLD 52 -#define MULLOW_MUL_N_THRESHOLD 438 +#define MULLOW_DC_THRESHOLD 56 +#define MULLOW_MUL_N_THRESHOLD 327 #define DIV_SB_PREINV_THRESHOLD 0 /* always */ -#define DIV_DC_THRESHOLD 44 -#define POWM_THRESHOLD 89 +#define DIV_DC_THRESHOLD 48 +#define POWM_THRESHOLD 83 -#define GCD_ACCEL_THRESHOLD 3 -#define GCDEXT_THRESHOLD 36 +#define GCD_ACCEL_THRESHOLD 7 +#define GCDEXT_THRESHOLD 22 #define JACOBI_BASE_METHOD 1 #define DIVREM_1_NORM_THRESHOLD 0 /* always */ @@ -62,14 +66,17 @@ MA 02110-1301, USA. */ #define DIVEXACT_1_THRESHOLD 0 /* always */ #define MODEXACT_1_ODD_THRESHOLD 0 /* always (native) */ -#define GET_STR_DC_THRESHOLD 14 -#define GET_STR_PRECOMPUTE_THRESHOLD 25 +#define GET_STR_DC_THRESHOLD 19 +#define GET_STR_PRECOMPUTE_THRESHOLD 34 #define SET_STR_THRESHOLD 6418 -#define MUL_FFT_TABLE { 336, 800, 1408, 3584, 10240, 40960, 163840, 393216, 0 } -#define MUL_FFT_MODF_THRESHOLD 352 -#define MUL_FFT_THRESHOLD 2304 +#define MUL_FFT_TABLE { 304, 736, 896, 2560, 10240, 40960, 163840, 655360, 0 } +#define MUL_FFT_MODF_THRESHOLD 232 +#define MUL_FFT_THRESHOLD 6144 + +#define SQR_FFT_TABLE { 272, 736, 896, 3584, 10240, 40960, 163840, 655360, 0 } +#define SQR_FFT_MODF_THRESHOLD 232 +#define SQR_FFT_THRESHOLD 2304 + +/* Tuneup completed successfully, took 68 seconds */ -#define SQR_FFT_TABLE { 368, 864, 1664, 3584, 10240, 40960, 163840, 393216, 0 } -#define SQR_FFT_MODF_THRESHOLD 384 -#define SQR_FFT_THRESHOLD 2816