summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2012-01-20 06:51:41 +0000
committerdas <das@FreeBSD.org>2012-01-20 06:51:41 +0000
commiteb8ecc65f7fa5c02118488dbceb9bc57176e4867 (patch)
treec2ccfaaeb9988f5b69ae2f4a8fe07194ba511789 /sys/powerpc/include
parent6003be2b93b55b2c4ddc36327b2368bfbf1cd580 (diff)
downloadFreeBSD-src-eb8ecc65f7fa5c02118488dbceb9bc57176e4867.zip
FreeBSD-src-eb8ecc65f7fa5c02118488dbceb9bc57176e4867.tar.gz
Add parentheses where required. Without them, `sizeof LDBL_MAX'
is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a syntax error and should be. Thanks to bde for the examples.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/float.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/include/float.h b/sys/powerpc/include/float.h
index d6a1364..aee7593 100644
--- a/sys/powerpc/include/float.h
+++ b/sys/powerpc/include/float.h
@@ -42,7 +42,7 @@ extern int __flt_rounds(void);
__END_DECLS
#define FLT_ROUNDS __flt_rounds()
#else
-#define FLT_ROUNDS -1
+#define FLT_ROUNDS (-1)
#endif
#define FLT_RADIX 2 /* b */
@@ -72,13 +72,13 @@ __END_DECLS
#define DBL_MAX_10_EXP 308
#define LDBL_MANT_DIG DBL_MANT_DIG
-#define LDBL_EPSILON (long double)DBL_EPSILON
+#define LDBL_EPSILON ((long double)DBL_EPSILON)
#define LDBL_DIG DBL_DIG
#define LDBL_MIN_EXP DBL_MIN_EXP
-#define LDBL_MIN (long double)DBL_MIN
+#define LDBL_MIN ((long double)DBL_MIN)
#define LDBL_MIN_10_EXP DBL_MIN_10_EXP
#define LDBL_MAX_EXP DBL_MAX_EXP
-#define LDBL_MAX (long double)DBL_MAX
+#define LDBL_MAX ((long double)DBL_MAX)
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
#endif /* _MACHINE_FLOAT_H_ */
OpenPOWER on IntegriCloud