* doublest.c: Improve comments a bit.
authorMark Kettenis <kettenis@gnu.org>
Sun, 28 Oct 2001 22:06:27 +0000 (22:06 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 28 Oct 2001 22:06:27 +0000 (22:06 +0000)
commit87ffba60fb7234f505bd18800ca53a62fb7e3b0c
tree87ec49cac4a7361db865662086b2427dc05e4838
parent4583280ca5c253f8d32b7c397ab10099c049073c
* doublest.c: Improve comments a bit.
(floatformat_from_length): New function.
(NAN): Define to 0.0 if not already defined.
(extract_floating): Rewrite to use floatformat_from_length.  Warn
instead of error if LEN doesn't match a known floating-point type,
and return NaN (or 0.0 if NaN isn't available) in that case.
(store_floating): Likewise, but zero out the target byte-stream if
LEN doesn't match a known floating-point type.
(extract_typed_floating): Reformat a bit.
(store_typed_floating): Reformat a bit.  Add comment about zeroing
out padding in the target buffer.
* doublest.h (extract_floating, store_floating): Fix comment about
deprecation of these functions.  Add parameter names to prototypes.
gdb/ChangeLog
gdb/doublest.c
gdb/doublest.h