diff options
author | Nick Clifton <nickc@redhat.com> | 2001-06-22 09:32:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-06-22 09:32:09 +0000 |
commit | dd9b19ab4056d163a4474b074d0e173a153bcbc4 (patch) | |
tree | a0a630223d5d65c9d7b95781ee22a41e3382167d /gas | |
parent | af3bdff75326c3169c079883f7f901045c0c98a4 (diff) | |
download | gdb-dd9b19ab4056d163a4474b074d0e173a153bcbc4.zip gdb-dd9b19ab4056d163a4474b074d0e173a153bcbc4.tar.gz gdb-dd9b19ab4056d163a4474b074d0e173a153bcbc4.tar.bz2 |
Document md_atof
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/doc/internals.texi | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0f5fc1e..f302eb7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-06-22 Nick Clifton <nickc@cambridge.redhat.com> + + * doc/internals.texi (CPU backend): Document md_atof. + 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com> * config/tc-hppa.c: Add %mrp (millicode return pointer) alias diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi index 013b19c..3e3e507 100644 --- a/gas/doc/internals.texi +++ b/gas/doc/internals.texi @@ -1130,6 +1130,22 @@ the MIPS which support options to change the endianness, which function to call 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 |