aboutsummaryrefslogtreecommitdiff
path: root/include/floatformat.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-22 17:41:02 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-22 17:41:02 +0000
commit5324d1855acc70deb308aba1f6d975181fcf4c74 (patch)
tree4adb32a035935277f8c3467a8df1516f14c4ab4a /include/floatformat.h
parentb222a67f1f5f0a601afd28b4afacb5d2b6337ef1 (diff)
downloadbinutils-5324d1855acc70deb308aba1f6d975181fcf4c74.zip
binutils-5324d1855acc70deb308aba1f6d975181fcf4c74.tar.gz
binutils-5324d1855acc70deb308aba1f6d975181fcf4c74.tar.bz2
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".
Diffstat (limited to 'include/floatformat.h')
-rw-r--r--include/floatformat.h3
1 files changed, 3 insertions, 0 deletions
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. */