dfp-bit.c (dfp_unary_func): Delete.
authorJanis Johnson <janis187@us.ibm.com>
Tue, 11 Sep 2007 00:25:18 +0000 (00:25 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 11 Sep 2007 00:25:18 +0000 (00:25 +0000)
commitfb27b3f6ef2fe946ef98a74bbfb83eac9819df1c
treecdd1d11749442787aa9127594fdf8d20fdef40b2
parent4a14361781d73eec1e76ac6102536e9854c9d9e9
dfp-bit.c (dfp_unary_func): Delete.

* config/dfp-bit.c (dfp_unary_func): Delete.
(dfp_unary_op): Delete.
(dfp_binary_op): Use decFloat functions instead of decNumber
functions for binary operations.
(d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
(dnn_binary_op): Call dfp_binary_op with decFloat rather than
DFP_C_TYPE.
(dfp_compare_op): Use decFloat functions insteadof decNumber
functions for comparisons.
(d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
(dnn_binary_op): Call dfp_compare_op with decFloat rather than
DFP_C_TYPE.
(DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
call to dxx_binary_op and decFloat function.
(DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
calls to dxx_binary_op and decFloat function.
* config/dfp-bit.h: Include decFloat header files.
(decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.

From-SVN: r128358
gcc/ChangeLog
gcc/config/dfp-bit.c
gcc/config/dfp-bit.h