summaryrefslogtreecommitdiff
path: root/gcc/real.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-15 04:24:02 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-15 04:24:02 +0000
commit8d5646928c677c3a139c47dfd4b00098f64ef2cd (patch)
treefd1306387b9c3baa836922299f7959de1d960916 /gcc/real.h
parent60c4d030e28c4be3b518018ba818299730217168 (diff)
downloadgcc-8d5646928c677c3a139c47dfd4b00098f64ef2cd.tar.gz
* real.h (struct real_format): Split the signbit field into two
two fields, signbit_ro and signbit_rw. * real.c (ieee_single_format, mips_single_format, ieee_double_format, mips_double_format, ieee_extended_motorola_format, ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format, ieee_extended_intel_128_format, ibm_extended_format, mips_extended_format, ieee_quad_format, mips_quad_format, vax_f_format, vax_d_format, vax_g_format, i370_single_format, i370_double_format, c4x_single_format, c4x_extended_format, real_internal_format): Update initializers for new field. * builtins.c (expand_builtin_signbit): Use signbit_ro field of the real_format structure. * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw field of the real_format structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96471 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.h')
-rw-r--r--gcc/real.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/real.h b/gcc/real.h
index 5c4e9c605d8..9e52c6d5b8c 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -138,8 +138,13 @@ struct real_format
/* The maximum integer, x, such that b**(x-1) is representable. */
int emax;
- /* The bit position of the sign bit, or -1 for a complex encoding. */
- int signbit;
+ /* The bit position of the sign bit, for determining whether a value
+ is positive/negative, or -1 for a complex encoding. */
+ int signbit_ro;
+
+ /* The bit position of the sign bit, for changing the sign of a number,
+ or -1 for a complex encoding. */
+ int signbit_rw;
/* Properties of the format. */
bool has_nans;