Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Make the copies of the FE_* macros ma...



details:   https://anonhg.NetBSD.org/src/rev/889338633730
branches:  trunk
changeset: 350603:889338633730
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jan 14 12:00:13 2017 +0000

description:
Make the copies of the FE_* macros match verbatim to avoid a gcc warning
when both ieeefp.h and fenv.h are included.

diffstat:

 sys/arch/sparc/include/fenv.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 5c5d147a4381 -r 889338633730 sys/arch/sparc/include/fenv.h
--- a/sys/arch/sparc/include/fenv.h     Sat Jan 14 07:17:38 2017 +0000
+++ b/sys/arch/sparc/include/fenv.h     Sat Jan 14 12:00:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fenv.h,v 1.1 2011/05/20 21:42:49 nakayama Exp $        */
+/*     $NetBSD: fenv.h,v 1.2 2017/01/14 12:00:13 martin Exp $  */
 
 /*-
  * Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -62,10 +62,10 @@
  * We can't just use the hardware bit values here, because that would
  * make FE_UPWARD and FE_DOWNWARD negative, which is not allowed.
  */
-#define        FE_TONEAREST    0x0
-#define        FE_TOWARDZERO   0x1
-#define        FE_UPWARD       0x2
-#define        FE_DOWNWARD     0x3
+#define        FE_TONEAREST    0       /* round to nearest representable number */
+#define        FE_TOWARDZERO   1       /* round to zero (truncate) */
+#define        FE_UPWARD       2       /* round toward positive infinity */
+#define        FE_DOWNWARD     3       /* round toward negative infinity */
 #define        _ROUND_MASK     (FE_TONEAREST | FE_DOWNWARD | \
     FE_UPWARD | FE_TOWARDZERO)
 #define        _ROUND_SHIFT    30



Home | Main Index | Thread Index | Old Index