]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* dfp-bit.c (DFP_TO_INT): Fix rounding mode.
authorJanis Johnson <janis187@us.ibm.com>
Wed, 29 Nov 2006 23:11:01 +0000 (23:11 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Wed, 29 Nov 2006 23:11:01 +0000 (23:11 +0000)
From-SVN: r119335

gcc/ChangeLog
gcc/config/dfp-bit.c

index e80cb3c00fd8573e24418b70c7a54cf0c12fd139..8df3d86453a06b7dfc26f06345edea7d4687df67 100644 (file)
@@ -1,5 +1,7 @@
 2006-11-29  Janis Johnson  <janis187@us.ibm.com>
 
+       * config/dfp-bit.c (DFP_TO_INT): Fix rounding mode.
+
        * config/dfp-bit.h (CONTEXT_ROUND): Delete.
        (DFP_INIT_ROUNDMODE): Define.
        * config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
index 9ffdd8a13f95a469306885761e631de1f6d2b737..0d4308efc85388c97cc1455fc4b97ca121b02351 100644 (file)
@@ -394,7 +394,7 @@ DFP_TO_INT (DFP_C_TYPE x)
 
   decContextDefault (&context, CONTEXT_INIT);
   /* Need non-default rounding mode here.  */
-  DFP_INIT_ROUNDMODE (context.round);
+  context.round = DEC_ROUND_DOWN;
 
   HOST_TO_IEEE (x, &s);
   TO_INTERNAL (&s, &n1);