1*84d9c625SLionel Sambuc /* $NetBSD: float.h,v 1.6 2013/04/27 21:35:25 joerg Exp $ */ 2f6aac1c3SLionel Sambuc 3f6aac1c3SLionel Sambuc #ifndef _X86_FLOAT_H_ 4f6aac1c3SLionel Sambuc #define _X86_FLOAT_H_ 5f6aac1c3SLionel Sambuc 6*84d9c625SLionel Sambuc #include <sys/featuretest.h> 7*84d9c625SLionel Sambuc 8f6aac1c3SLionel Sambuc #define LDBL_MANT_DIG 64 9f6aac1c3SLionel Sambuc #define LDBL_EPSILON 1.0842021724855044340E-19L 10f6aac1c3SLionel Sambuc #define LDBL_DIG 18 11f6aac1c3SLionel Sambuc #define LDBL_MIN_EXP (-16381) 12f6aac1c3SLionel Sambuc #define LDBL_MIN 3.3621031431120935063E-4932L 13f6aac1c3SLionel Sambuc #define LDBL_MIN_10_EXP (-4931) 14f6aac1c3SLionel Sambuc #define LDBL_MAX_EXP 16384 15f6aac1c3SLionel Sambuc #define LDBL_MAX 1.1897314953572317650E+4932L 16f6aac1c3SLionel Sambuc #define LDBL_MAX_10_EXP 4932 17f6aac1c3SLionel Sambuc 18f6aac1c3SLionel Sambuc #include <sys/float_ieee754.h> 19f6aac1c3SLionel Sambuc 20f6aac1c3SLionel Sambuc #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ 21f6aac1c3SLionel Sambuc !defined(_XOPEN_SOURCE) || \ 22f6aac1c3SLionel Sambuc ((__STDC_VERSION__ - 0) >= 199901L) || \ 23f6aac1c3SLionel Sambuc ((_POSIX_C_SOURCE - 0) >= 200112L) || \ 24f6aac1c3SLionel Sambuc ((_XOPEN_SOURCE - 0) >= 600) || \ 25f6aac1c3SLionel Sambuc defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE) 26f6aac1c3SLionel Sambuc #define DECIMAL_DIG 21 27f6aac1c3SLionel Sambuc #endif /* !defined(_ANSI_SOURCE) && ... */ 28f6aac1c3SLionel Sambuc 29f6aac1c3SLionel Sambuc #endif /* _X86_FLOAT_H_ */ 30