Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/softfloat In float*_round_to_int(), where we have s...



details:   https://anonhg.NetBSD.org/src/rev/119296f13dba
branches:  trunk
changeset: 526642:119296f13dba
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Tue May 07 10:02:42 2002 +0000

description:
In float*_round_to_int(), where we have switches over rounding modes, make
sure that all the modes are mentioned, if only with a "break;".  This
ensures GCC doesn't whinge at us on ports which use an enum for fp_rnd.

diffstat:

 lib/libc/softfloat/softfloat.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 1aa1140fc952 -r 119296f13dba lib/libc/softfloat/softfloat.c
--- a/lib/libc/softfloat/softfloat.c    Tue May 07 09:56:32 2002 +0000
+++ b/lib/libc/softfloat/softfloat.c    Tue May 07 10:02:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.c,v 1.8 2002/05/06 19:05:00 bjh21 Exp $ */
+/* $NetBSD: softfloat.c,v 1.9 2002/05/07 10:02:42 bjh21 Exp $ */
 
 /*
  * This version hacked for use with gcc -msoft-float by bjh21.
@@ -46,7 +46,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: softfloat.c,v 1.8 2002/05/06 19:05:00 bjh21 Exp $");
+__RCSID("$NetBSD: softfloat.c,v 1.9 2002/05/07 10:02:42 bjh21 Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #ifdef SOFTFLOAT_FOR_GCC
@@ -1620,6 +1620,8 @@
                 return packFloat32( aSign, 0x7F, 0 );
             }
             break;
+        case float_round_to_zero:
+           break;
          case float_round_down:
             return aSign ? 0xBF800000 : 0;
          case float_round_up:
@@ -2583,6 +2585,8 @@
                 return packFloat64( aSign, 0x3FF, 0 );
             }
             break;
+        case float_round_to_zero:
+           break;
          case float_round_down:
             return aSign ? LIT64( 0xBFF0000000000000 ) : 0;
          case float_round_up:
@@ -3518,6 +3522,8 @@
                     packFloatx80( aSign, 0x3FFF, LIT64( 0x8000000000000000 ) );
             }
             break;
+        case float_round_to_zero:
+           break;
          case float_round_down:
             return
                   aSign ?
@@ -4609,6 +4615,8 @@
                     return packFloat128( aSign, 0x3FFF, 0, 0 );
                 }
                 break;
+            case float_round_to_zero:
+               break;
              case float_round_down:
                 return
                       aSign ? packFloat128( 1, 0x3FFF, 0, 0 )



Home | Main Index | Thread Index | Old Index