Deleted Added
full compact
test-logarithm.c (175467) test-logarithm.c (176375)
1/*-
2 * Copyright (c) 2008 David Schultz <das@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Tests for corner cases in exp*().
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 David Schultz <das@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 */
26
27/*
28 * Tests for corner cases in exp*().
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-exponential.c 175467 2008-01-18 22:10:57Z das $");
32__FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-exponential.c 176375 2008-02-17 22:45:53Z das $");
33
34#include <assert.h>
35#include <fenv.h>
36#include <float.h>
37#include <math.h>
38#include <stdio.h>
39
40#ifdef __i386__

--- 106 unchanged lines hidden (view full) ---

147 assert(fetestexcept(ALL_STD_EXCEPT) == 0);
148 }
149}
150
151int
152main(int argc, char *argv[])
153{
154
33
34#include <assert.h>
35#include <fenv.h>
36#include <float.h>
37#include <math.h>
38#include <stdio.h>
39
40#ifdef __i386__

--- 106 unchanged lines hidden (view full) ---

147 assert(fetestexcept(ALL_STD_EXCEPT) == 0);
148 }
149}
150
151int
152main(int argc, char *argv[])
153{
154
155 printf("1..2\n");
155 printf("1..3\n");
156
157 run_generic_tests();
158 printf("ok 1 - exponential\n");
159
160#ifdef __i386__
161 fpsetprec(FP_PE);
162 run_generic_tests();
163#endif
164 printf("ok 2 - exponential\n");
165
166 run_exp2_tests();
167 printf("ok 3 - exponential\n");
168
169 return (0);
170}
156
157 run_generic_tests();
158 printf("ok 1 - exponential\n");
159
160#ifdef __i386__
161 fpsetprec(FP_PE);
162 run_generic_tests();
163#endif
164 printf("ok 2 - exponential\n");
165
166 run_exp2_tests();
167 printf("ok 3 - exponential\n");
168
169 return (0);
170}