diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-22 17:42:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@gcc.gnu.org> | 2003-09-22 17:42:03 +0000 |
commit | 83c073429b3acaee0352e0c11f1dab7bed0d027b (patch) | |
tree | bb6f917b028df75b7073b269f6970f7dbe80b423 /include | |
parent | 6b475ad591474951f88297d6e8e32aa99a5d6180 (diff) | |
download | gcc-83c073429b3acaee0352e0c11f1dab7bed0d027b.zip gcc-83c073429b3acaee0352e0c11f1dab7bed0d027b.tar.gz gcc-83c073429b3acaee0352e0c11f1dab7bed0d027b.tar.bz2 |
floatformat.h (struct floatformat): Add field "is_valid".
2003-09-22 Andrew Cagney <cagney@redhat.com>
* floatformat.h (struct floatformat): Add field "is_valid".
2003-09-22 Andrew Cagney <cagney@redhat.com>
* floatformat.c (floatformat_i387_ext_is_valid): New function.
(floatformat_always_valid): New function.
(floatformat_i387_ext): Initialize new "is_valid" field to
"floatformat_i387_ext_is_valid".
(floatformat_ieee_single_little): Initialize "is_valid" field to
floatformat_always_valid.
(floatformat_ieee_double_big): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_littlebyte_bigword): Ditto.
(floatformat_i960_ext): Ditto.
(floatformat_m88110_ext): Ditto.
(floatformat_m88110_harris_ext): Ditto.
(floatformat_arm_ext_big): Ditto.
(floatformat_arm_ext_littlebyte_bigword): Ditto.
(floatformat_ia64_spill_big): Ditto.
(floatformat_ia64_spill_little): Ditto.
(floatformat_ia64_quad_big): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_is_valid): Call "is_valid".
From-SVN: r71659
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/floatformat.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 7d72708..db25adc 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,8 +1,12 @@ +2003-09-22 Andrew Cagney <cagney@redhat.com> + + * floatformat.h (struct floatformat): Add field "is_valid". + 2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.h (floatformat_to_double): Make input buffer constant. (floatformat_from_double, floatformat_is_valid): Ditto. - + 2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.h (struct floatformat): Make "exp_bias" signed. diff --git a/include/floatformat.h b/include/floatformat.h index 3d0fd7a..a8244ad 100644 --- a/include/floatformat.h +++ b/include/floatformat.h @@ -80,6 +80,9 @@ struct floatformat /* Internal name for debugging. */ const char *name; + + /* Validator method. */ + int (*is_valid) PARAMS ((const struct floatformat *fmt, const char *from)); }; /* floatformats for IEEE single and double, big and little endian. */ |