From 499ac353610f24006acf82c32503d8d15d0f278c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 17 Oct 2007 16:45:56 +0000 Subject: Remove duplicate definitions of the md_atof() function --- gas/config/tc-mn10300.c | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) (limited to 'gas/config/tc-mn10300.c') diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c index 64d1f6d..9b2441f 100644 --- a/gas/config/tc-mn10300.c +++ b/gas/config/tc-mn10300.c @@ -711,44 +711,9 @@ md_undefined_symbol (name) } char * -md_atof (type, litp, sizep) - int type; - char *litp; - int *sizep; +md_atof (int type, char *litp, int *sizep) { - int prec; - LITTLENUM_TYPE words[4]; - char *t; - int i; - - switch (type) - { - case 'f': - prec = 2; - break; - - case 'd': - prec = 4; - break; - - default: - *sizep = 0; - return "bad call to md_atof"; - } - - t = atof_ieee (input_line_pointer, type, words); - if (t) - input_line_pointer = t; - - *sizep = prec * 2; - - for (i = prec - 1; i >= 0; i--) - { - md_number_to_chars (litp, (valueT) words[i], 2); - litp += 2; - } - - return NULL; + return ieee_md_atof (type, litp, sizep, FALSE); } void -- cgit v1.1