1 1.14 matt /* $NetBSD: float.h,v 1.14 2011/01/17 23:53:03 matt Exp $ */ 2 1.14 matt 3 1.14 matt #ifndef _MIPS_FLOAT_H_ 4 1.14 matt #define _MIPS_FLOAT_H_ 5 1.14 matt 6 1.14 matt #if defined(__mips_n32) || defined(__mips_n64) 7 1.14 matt 8 1.14 matt #define LDBL_MANT_DIG 113 9 1.14 matt #define LDBL_EPSILON 1.925929944387235853055977942584927319E-34L 10 1.14 matt #define LDBL_DIG 33 11 1.14 matt #define LDBL_MIN_EXP (-16381) 12 1.14 matt #define LDBL_MIN 3.3621031431120935062626778173217526026E-4932L 13 1.14 matt #define LDBL_MIN_10_EXP (-4931) 14 1.14 matt #define LDBL_MAX_EXP 16384 15 1.14 matt #define LDBL_MAX 1.1897314953572317650857593266280070162E4932L 16 1.14 matt #define LDBL_MAX_10_EXP 4932 17 1.14 matt 18 1.14 matt #endif /* __mips_n32 || __mips_n64 */ 19 1.4 cgd 20 1.13 kleink #include <sys/float_ieee754.h> 21 1.14 matt 22 1.14 matt #if defined(__mips_n32) || defined(__mips_n64) 23 1.14 matt 24 1.14 matt #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ 25 1.14 matt !defined(_XOPEN_SOURCE) || \ 26 1.14 matt ((__STDC_VERSION__ - 0) >= 199901L) || \ 27 1.14 matt ((_POSIX_C_SOURCE - 0) >= 200112L) || \ 28 1.14 matt ((_XOPEN_SOURCE - 0) >= 600) || \ 29 1.14 matt defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) 30 1.14 matt #define DECIMAL_DIG 36 31 1.14 matt #endif /* !defined(_ANSI_SOURCE) && ... */ 32 1.14 matt 33 1.14 matt #endif /* __mips_n32 || __mips_n64 */ 34 1.14 matt 35 1.14 matt #endif /* _MIPS_FLOAT_H_ */ 36