HOST_TO_IEEE (arg, &a);
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
TO_INTERNAL (&a, &arg1);
HOST_TO_IEEE (arg_b, &b);
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
TO_INTERNAL (&a, &arg1);
TO_INTERNAL (&b, &arg2);
HOST_TO_IEEE (arg_b, &b);
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
TO_INTERNAL (&a, &arg1);
TO_INTERNAL (&b, &arg2);
decContext context;
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
HOST_TO_IEEE (f_from, &s_from);
TO_INTERNAL (&s_from, &d);
decContextDefault (&context, CONTEXT_INIT);
/* Need non-default rounding mode here. */
- context.round = DEC_ROUND_DOWN;
+ DFP_INIT_ROUNDMODE (context.round);
HOST_TO_IEEE (x, &s);
TO_INTERNAL (&s, &n1);
decContext context;
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
/* Use a C library function to get a floating point string. */
sprintf (buf, INT_FMT ".0", CAST_FOR_FMT(i));
decContext context;
decContextDefault (&context, CONTEXT_INIT);
- context.round = CONTEXT_ROUND;
+ DFP_INIT_ROUNDMODE (context.round);
/* Use a C library function to write the floating point value to a string. */
#ifdef BFP_VIA_TYPE