Deleted Added
full compact
imprecise.c (268593) imprecise.c (271651)
1/*-
2 * Copyright (c) 2013 David Chisnall
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2013 David Chisnall
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/msun/src/imprecise.c 268593 2014-07-13 17:05:03Z kargl $
26 * $FreeBSD: head/lib/msun/src/imprecise.c 271651 2014-09-15 23:21:57Z kargl $
27 */
28
29#include <float.h>
30#include <math.h>
31
32/*
33 * If long double is not the same size as double, then these will lose
34 * precision and we should emit a warning whenever something links against

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

55 return pow(x, y);
56}
57DECLARE_WEAK(powl);
58
59#define DECLARE_IMPRECISE(f) \
60 long double imprecise_ ## f ## l(long double v) { return f(v); }\
61 DECLARE_WEAK(f ## l)
62
27 */
28
29#include <float.h>
30#include <math.h>
31
32/*
33 * If long double is not the same size as double, then these will lose
34 * precision and we should emit a warning whenever something links against

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

55 return pow(x, y);
56}
57DECLARE_WEAK(powl);
58
59#define DECLARE_IMPRECISE(f) \
60 long double imprecise_ ## f ## l(long double v) { return f(v); }\
61 DECLARE_WEAK(f ## l)
62
63DECLARE_IMPRECISE(lgamma);
64DECLARE_IMPRECISE(tgamma);
63DECLARE_IMPRECISE(tgamma);