2006-11-29 Janis Johnson <janis187@us.ibm.com>
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.
* config/dfp-bit.h (CONTEXT_ROUND): Delete.
(DFP_INIT_ROUNDMODE): Define.
* config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
decContextDefault (&context, CONTEXT_INIT);
/* Need non-default rounding mode here. */
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);
HOST_TO_IEEE (x, &s);
TO_INTERNAL (&s, &n1);