Deleted Added
full compact
test-logarithm.c (175463) test-logarithm.c (175467)
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 175463 2008-01-18 21:46:54Z das $");
32__FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-exponential.c 175467 2008-01-18 22:10:57Z 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__

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

115 testall1(-INFINITY, -1.0, ALL_STD_EXCEPT, 0);
116
117 /* exp(big) == Inf, overflow exception */
118 testall0(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW);
119 testall1(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW);
120
121 /* exp(small) == 0, underflow and inexact exceptions */
122 testall0(-50000.0, 0.0, ALL_STD_EXCEPT, FE_UNDERFLOW | FE_INEXACT);
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__

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

115 testall1(-INFINITY, -1.0, ALL_STD_EXCEPT, 0);
116
117 /* exp(big) == Inf, overflow exception */
118 testall0(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW);
119 testall1(50000.0, INFINITY, ALL_STD_EXCEPT & ~FE_INEXACT, FE_OVERFLOW);
120
121 /* exp(small) == 0, underflow and inexact exceptions */
122 testall0(-50000.0, 0.0, ALL_STD_EXCEPT, FE_UNDERFLOW | FE_INEXACT);
123 testall1(-50000.0, -1.0, ALL_STD_EXCEPT, FE_UNDERFLOW | FE_INEXACT);
123 testall1(-50000.0, -1.0, ALL_STD_EXCEPT, FE_INEXACT);
124}
125
126void
127run_exp2_tests(void)
128{
129 int i;
130
131 /*

--- 39 unchanged lines hidden ---
124}
125
126void
127run_exp2_tests(void)
128{
129 int i;
130
131 /*

--- 39 unchanged lines hidden ---