summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-23 11:50:17 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-23 11:50:17 +0000
commit8f049482ddc8df3244971866418c4f03bb3994e2 (patch)
treebf955b49e099579130f961c0b026eaaccfb0c69e /tune
parente17649998c6f9b37b1d036b21a6ce58ef567b105 (diff)
downloadmpfr-8f049482ddc8df3244971866418c4f03bb3994e2.tar.gz
Use of the numberof macro.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8876 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r--tune/speed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tune/speed.c b/tune/speed.c
index 7d2886b63..8698fc0e1 100644
--- a/tune/speed.c
+++ b/tune/speed.c
@@ -31,8 +31,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
static short mulhigh_ktab[MPFR_MULHIGH_TAB_SIZE];
#else
static short mulhigh_ktab[] = {MPFR_MULHIGH_TAB};
-#define MPFR_MULHIGH_TAB_SIZE \
- ((mp_size_t) (sizeof(mulhigh_ktab) / sizeof(mulhigh_ktab[0])))
+#define MPFR_MULHIGH_TAB_SIZE ((mp_size_t) (numberof (mulhigh_ktab)))
#endif
#undef _PROTO