about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-07 17:48:42 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-07 17:48:42 +0000
commitf5c8f28593f7421e653dbf52731f6d62babd6c48 (patch)
treec99ce293f211e5fb99e3f7079be6dca38359fb82
parentb9f266599ecb88e9fabe1ed43d808c8b7cf8caf8 (diff)
downloadglibc-f5c8f28593f7421e653dbf52731f6d62babd6c48.tar.gz
glibc-f5c8f28593f7421e653dbf52731f6d62babd6c48.tar.xz
glibc-f5c8f28593f7421e653dbf52731f6d62babd6c48.zip
(significand_test): New function. (main): Call it.
-rw-r--r--math/libm-test.inc17
1 files changed, 16 insertions, 1 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index f30a95e187..783e4cc854 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 1997.
 
@@ -4238,6 +4238,20 @@ yn_test (void)
 
 
 static void
+significand_test (void)
+{
+  /* significand returns the mantissa of the exponential representation.  */
+  START (significand);
+
+  TEST_f_f (significand, 4.0, 1.0);
+  TEST_f_f (significand, 6.0, 1.5);
+  TEST_f_f (significand, 8.0, 1.0);
+
+  END (significand);
+}
+
+
+static void
 initialize (void)
 {
   fpstack_test ("start *init*");
@@ -4432,6 +4446,7 @@ main (int argc, char **argv)
   scalb_test ();
   scalbn_test ();
   scalbln_test ();
+  significand_test ();
 
   /* Power and absolute value functions:  */
   cbrt_test ();