diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-29 18:34:56 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-29 18:34:56 +0000 |
commit | 9dfa4821f3b10eb367d1694e4f6b18e7f4a36c44 (patch) | |
tree | 0e45af83e880d77674ad22929e17ff16e2f1a5e4 /gcc/config/dfp-bit.c | |
parent | 3953ee1cd1c9fd6023d4548fe5a5d9ff3f230785 (diff) | |
download | gcc-9dfa4821f3b10eb367d1694e4f6b18e7f4a36c44.tar.gz |
libdecnumber/
* decRound.c: Move declarations to new file, update comments.
* decRound.h: New file.
gcc/
* mklibgcc.in: Fix dependencies for dfp-bit.c.
* config/dfp-bit.h (CONTEXT_ROUND): Delete.
(DFP_INIT_ROUNDMODE): Define.
* config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/dfp-bit.c')
-rw-r--r-- | gcc/config/dfp-bit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/dfp-bit.c b/gcc/config/dfp-bit.c index fc75a8bc604..9ffdd8a13f9 100644 --- a/gcc/config/dfp-bit.c +++ b/gcc/config/dfp-bit.c @@ -81,7 +81,7 @@ dfp_unary_op (dfp_unary_func op, DFP_C_TYPE arg) HOST_TO_IEEE (arg, &a); decContextDefault (&context, CONTEXT_INIT); - context.round = CONTEXT_ROUND; + DFP_INIT_ROUNDMODE (context.round); TO_INTERNAL (&a, &arg1); @@ -107,7 +107,7 @@ dfp_binary_op (dfp_binary_func op, DFP_C_TYPE arg_a, DFP_C_TYPE arg_b) 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); @@ -134,7 +134,7 @@ dfp_compare_op (dfp_binary_func op, DFP_C_TYPE arg_a, DFP_C_TYPE arg_b) 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); @@ -365,7 +365,7 @@ DFP_TO_DFP (DFP_C_TYPE f_from) 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); @@ -394,7 +394,7 @@ DFP_TO_INT (DFP_C_TYPE x) 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); @@ -428,7 +428,7 @@ INT_TO_DFP (INT_TYPE i) 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)); @@ -470,7 +470,7 @@ BFP_TO_DFP (BFP_TYPE x) 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 |