Deleted Added
full compact
float.h (143857) float.h (230191)
1/*-
2 * Copyright (c) 1989 Regents of the University of California.
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * from: @(#)float.h 7.1 (Berkeley) 5/8/90
1/*-
2 * Copyright (c) 1989 Regents of the University of California.
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * from: @(#)float.h 7.1 (Berkeley) 5/8/90
34 * $FreeBSD: head/sys/arm/include/float.h 143857 2005-03-20 00:34:24Z cognet $
34 * $FreeBSD: head/sys/arm/include/float.h 230191 2012-01-16 04:08:29Z das $
35 */
36
37#ifndef _MACHINE_FLOAT_H_
38#define _MACHINE_FLOAT_H_ 1
39
40#include <sys/cdefs.h>
41
42__BEGIN_DECLS
43extern int __flt_rounds(void);
44__END_DECLS
45
46#define FLT_RADIX 2 /* b */
35 */
36
37#ifndef _MACHINE_FLOAT_H_
38#define _MACHINE_FLOAT_H_ 1
39
40#include <sys/cdefs.h>
41
42__BEGIN_DECLS
43extern int __flt_rounds(void);
44__END_DECLS
45
46#define FLT_RADIX 2 /* b */
47#define FLT_ROUNDS -1
47#ifndef _ARM_HARD_FLOAT
48#define FLT_ROUNDS __flt_rounds()
49#else
50#define FLT_ROUNDS (-1)
51#endif
48#define FLT_EVAL_METHOD (-1) /* XXX */
49#define DECIMAL_DIG 17 /* max precision in decimal digits */
50
51#define FLT_MANT_DIG 24 /* p */
52#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
53#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */
54#define FLT_MIN_EXP (-125) /* emin */
55#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */

--- 25 unchanged lines hidden ---
52#define FLT_EVAL_METHOD (-1) /* XXX */
53#define DECIMAL_DIG 17 /* max precision in decimal digits */
54
55#define FLT_MANT_DIG 24 /* p */
56#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
57#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */
58#define FLT_MIN_EXP (-125) /* emin */
59#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */

--- 25 unchanged lines hidden ---