OSDN Git Service

* dfp-bit.c (DFP_TO_INT): Fix rounding mode.
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2006 23:11:01 +0000 (23:11 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Nov 2006 23:11:01 +0000 (23:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119335 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e80cb3c..8df3d86 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 9ffdd8a..0d4308e 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);