summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-07-06 22:33:44 +0200
committerKevin Ryde <user42@zip.com.au>2001-07-06 22:33:44 +0200
commitf2ecb649840950f16c567d1c7961c472468b1246 (patch)
tree0a19db1d7283040a12bcb7cdb80293f189e59fa5 /tune
parente9725440f84e14daae55f7c8b30e0153dbf8524f (diff)
downloadgmp-f2ecb649840950f16c567d1c7961c472468b1246.tar.gz
* tune/speed.c,speed.h,common.c,many.pl (MPN_ZERO): Add measuring.
Diffstat (limited to 'tune')
-rw-r--r--tune/common.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/tune/common.c b/tune/common.c
index 62b39b856..eaafee2f3 100644
--- a/tune/common.c
+++ b/tune/common.c
@@ -1,6 +1,5 @@
-/* Shared speed subroutines. */
+/* Shared speed subroutines.
-/*
Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -18,8 +17,7 @@ License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA.
-*/
+MA 02111-1307, USA. */
#include <errno.h>
#include <fcntl.h>
@@ -1753,3 +1751,10 @@ speed_mpn_set_str (struct speed_params *s)
{
SPEED_ROUTINE_MPN_SET_STR (mpn_set_str);
}
+
+
+double
+speed_MPN_ZERO (struct speed_params *s)
+{
+ SPEED_ROUTINE_MPN_ZERO_CALL (MPN_ZERO (wp, s->size));
+}