[Gmp-commit] /home/hgfiles/gmp: (struct fft_table_nk): Moved from mul_fft.c.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jan 18 01:30:04 CET 2010


details:   /home/hgfiles/gmp/rev/ec4b3cc65104
changeset: 13381:ec4b3cc65104
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jan 18 01:05:11 2010 +0100
description:
(struct fft_table_nk): Moved from mul_fft.c.

diffstat:

 ChangeLog  |  2 ++
 gmp-impl.h |  8 ++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r 4fbfaca46178 -r ec4b3cc65104 ChangeLog
--- a/ChangeLog	Mon Jan 18 01:03:42 2010 +0100
+++ b/ChangeLog	Mon Jan 18 01:05:11 2010 +0100
@@ -1,5 +1,7 @@
 2010-01-18  Torbjorn Granlund  <tege at gmplib.org>
 
+	* gmp-impl.h (struct fft_table_nk): Moved from mul_fft.c.
+
 	* mpn/generic/mul_fft.c: Handle a new FFT threshold table type ("3").
 	Misc cleanups to old table type code.
 
diff -r 4fbfaca46178 -r ec4b3cc65104 gmp-impl.h
--- a/gmp-impl.h	Mon Jan 18 01:03:42 2010 +0100
+++ b/gmp-impl.h	Mon Jan 18 01:05:11 2010 +0100
@@ -1890,6 +1890,12 @@
     0 }
 #endif
 
+struct fft_table_nk
+{
+  unsigned int n:27;
+  unsigned int k:5;
+};
+
 #ifndef FFT_TABLE_ATTRS
 #define FFT_TABLE_ATTRS   static const
 #endif
@@ -4445,6 +4451,8 @@
 #undef  FFT_TABLE_ATTRS
 #define FFT_TABLE_ATTRS
 extern mp_size_t  mpn_fft_table[2][MPN_FFT_TABLE_SIZE];
+#define FFT_TABLE3_SIZE 200
+extern struct fft_table_nk mpn_fft_table3[2][FFT_TABLE3_SIZE];
 
 /* Sizes the tune program tests up to, used in a couple of recompilations. */
 #undef MUL_TOOM22_THRESHOLD_LIMIT


More information about the gmp-commit mailing list