diff options
author | gallatin <gallatin@FreeBSD.org> | 2004-07-19 23:56:07 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2004-07-19 23:56:07 +0000 |
commit | 07524332dc804cf32528e76071068d2a4b470f80 (patch) | |
tree | 3b3b34c6ec21d9a1c093664f2c9f8f4c55392db9 /sys/powerpc | |
parent | cf7423d4fe9697707010fcf1b8f4f95a6b73d278 (diff) | |
download | FreeBSD-src-07524332dc804cf32528e76071068d2a4b470f80.zip FreeBSD-src-07524332dc804cf32528e76071068d2a4b470f80.tar.gz |
Fix printing of long doubles to match the size that
gcc is using. This fixes devstat consumers (like vmstat, iostat,
systat) so they don't print crazy zillion digit numbers for
disk transfers and bandwidth.
According to gcc, long doubles are 64-bits, rather than 128 bits
like the SVR4 ABI spec wants them to be.. Note that MacOSX also treats
long doubles as 64-bits, and not 128 bits, so we are in good company.
Reviewed by: das
Approved by: grehan
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/float.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/powerpc/include/float.h b/sys/powerpc/include/float.h index fff14f4..77b4044 100644 --- a/sys/powerpc/include/float.h +++ b/sys/powerpc/include/float.h @@ -67,14 +67,14 @@ __END_DECLS #define DBL_MAX 1.7976931348623157E+308 #define DBL_MAX_10_EXP 308 -#define LDBL_MANT_DIG 113 -#define LDBL_EPSILON 1.925929944387235853055977942584927319E-34L -#define LDBL_DIG 33 -#define LDBL_MIN_EXP (-16381) -#define LDBL_MIN 3.362103143112093506262677817321752603E-4932L -#define LDBL_MIN_10_EXP (-4931) -#define LDBL_MAX_EXP (+16384) -#define LDBL_MAX 1.189731495357231765085759326628007016E+4932L -#define LDBL_MAX_10_EXP (+4932) +#define LDBL_MANT_DIG DBL_MANT_DIG +#define LDBL_EPSILON DBL_EPSILON +#define LDBL_DIG DBL_DIG +#define LDBL_MIN_EXP DBL_MIN_EXP +#define LDBL_MIN DBL_MIN +#define LDBL_MIN_10_EXP DBL_MIN_10_EXP +#define LDBL_MAX_EXP DBL_MAX_EXP +#define LDBL_MAX DBL_MAX +#define LDBL_MAX_10_EXP DBL_MAX_10_EXP #endif /* _MACHINE_FLOAT_H_ */ |