mirror of
git://sourceware.org/git/glibc.git
synced 2026-10-20 11:52:27 +08:00
Update.
1999-10-19 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/fpu/s_nextafterl.c: Add __nextafterl and nextafterl aliases. * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Don't handle -Inf special. * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Check for -Inf and return NaN. * math/gen-libm-test.pl: Fix program name in help message. * math/libm-test.inc (check_complex): It's Imaginary, not Complex. * math/libm-test.inc (gamma_test): Result of gamma(-inf) is +inf. * sysdeps/i386/Implies: Correct order of libm directories.
This commit is contained in:
@@ -79,7 +79,7 @@ $ulps_file = 'libm-test-ulps';
|
||||
$output_dir = '';
|
||||
|
||||
if ($opt_h) {
|
||||
print "Usage: generate.pl [OPTIONS]\n";
|
||||
print "Usage: gen-libm-test.pl [OPTIONS]\n";
|
||||
print " -h print this help, then exit\n";
|
||||
print " -o DIR directory where generated files will be placed\n";
|
||||
print " -n generate sorted file NewUlps from libm-test-ulps\n";
|
||||
|
||||
+3
-3
@@ -466,7 +466,7 @@ check_complex (const char *test_name, FLOAT __complex__ computed,
|
||||
part_exp = __real__ expected;
|
||||
check_float (str, part_comp, part_exp, max_ulp, xfail, exception);
|
||||
|
||||
sprintf (str, "Complex part of: %s", test_name);
|
||||
sprintf (str, "Imaginary part of: %s", test_name);
|
||||
part_comp = __imag__ computed;
|
||||
part_exp = __imag__ expected;
|
||||
/* Don't check again for exceptions, just pass through the
|
||||
@@ -2384,13 +2384,13 @@ gamma_test (void)
|
||||
TEST_f_f (gamma, plus_infty, plus_infty);
|
||||
TEST_f_f (gamma, 0, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
|
||||
TEST_f_f (gamma, -3, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
|
||||
TEST_f_f (gamma, minus_infty, nan_value, INVALID_EXCEPTION);
|
||||
TEST_f_f (gamma, minus_infty, plus_infty);
|
||||
|
||||
TEST_f_f1 (gamma, 1, 0, 1);
|
||||
TEST_f_f1 (gamma, 3, M_LN2l, 1);
|
||||
|
||||
TEST_f_f1 (gamma, 0.5, M_LOG_SQRT_PIl, 1);
|
||||
TEST_f_f1 (gamma, -0.5, M_LOG_2_SQRT_PIl,-1);
|
||||
TEST_f_f1 (gamma, -0.5, M_LOG_2_SQRT_PIl, -1);
|
||||
|
||||
END (gamma);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user