md_atof is undocumented
Nick Clifton
nickc@cambridge.redhat.com
Fri Jun 22 02:31:00 GMT 2001
Hi Harshad,
> The function md_atof is required on all targets, but is not
> documented yet!
Oh alright. I will check in the following patch to add the
documentation. :-)
Cheers
Nick
2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
* doc/internals.texi (CPU backend): Document md_atof.
Index: doc/internals.texi
===================================================================
RCS file: /cvs/src/src/gas/doc/internals.texi,v
retrieving revision 1.23
diff -p -r1.23 internals.texi
*** internals.texi 2001/05/22 10:23:50 1.23
--- internals.texi 2001/06/22 09:30:32
*************** the MIPS which support options to change
*** 1130,1135 ****
--- 1130,1151 ----
is a runtime decision. On other targets, @code{md_number_to_chars} can be a
simple macro.
+ @item md_atof (@var{type},@var{litP},@var{sizeP})
+ @cindex md_atof
+ This function is called to convert an ASCII string into a floating point value
+ in format used by the CPU. It takes three arguments. The first is @var{type}
+ which is a byte describing the type of floating point number to be created.
+ Possible values are @var{'f'} or @var{'s'} for single precision, @var{'d'} or
+ @var{'r'} for double precision and @var{'x'} or @var{'p'} for extended
+ precision. Either lower or upper case versions of these letters can be used.
+
+ The second parameter is @var{litP} which is a pointer to a byte array where the
+ converted value should be stored. The third argument is @var{sizeP}, which is
+ a pointer to a integer that should be filled in with the number of
+ @var{LITTLENUM}s emitted into the byte array. (@var{LITTLENUM} is defined in
+ gas/bignum.h). The function should return NULL upon success or an error string
+ upon failure.
+
@item md_reloc_size
@cindex md_reloc_size
This variable is only used in the original version of gas (not
More information about the Binutils
mailing list