From 8f049482ddc8df3244971866418c4f03bb3994e2 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 23 Jan 2014 11:50:17 +0000 Subject: Use of the numberof macro. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8876 280ebfd0-de03-0410-8827-d642c229c3f4 --- tune/speed.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tune') 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 -- cgit v1.2.1