mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
(significand_test): New function. (main): Call it.
This commit is contained in:
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
||||||
|
|
||||||
@ -4237,6 +4237,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
|
static void
|
||||||
initialize (void)
|
initialize (void)
|
||||||
{
|
{
|
||||||
@ -4432,6 +4446,7 @@ main (int argc, char **argv)
|
|||||||
scalb_test ();
|
scalb_test ();
|
||||||
scalbn_test ();
|
scalbn_test ();
|
||||||
scalbln_test ();
|
scalbln_test ();
|
||||||
|
significand_test ();
|
||||||
|
|
||||||
/* Power and absolute value functions: */
|
/* Power and absolute value functions: */
|
||||||
cbrt_test ();
|
cbrt_test ();
|
||||||
|
Reference in New Issue
Block a user