Commit 7292b8e4 by Ben Elliston Committed by Ben Elliston

dfp.h, [...]: Remove references to IEEE 754R.

	* dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
	real.c: Remove references to IEEE 754R.
	* doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
	* doc/libgcc.texi (Decimal float library routines): Likewise.

From-SVN: r136933
parent 31dd593c
2008-06-19 Ben Elliston <bje@au.ibm.com>
* dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
real.c: Remove references to IEEE 754R.
* doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
* doc/libgcc.texi (Decimal float library routines): Likewise.
2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* targhooks.h (struct gcc_target): New member unwind_word_mode. * targhooks.h (struct gcc_target): New member unwind_word_mode.
......
...@@ -27,7 +27,7 @@ along with GCC; see the file COPYING. If not, write to the Free ...@@ -27,7 +27,7 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */ 02110-1301, USA. */
/* This implements IEEE 754R decimal floating point arithmetic, but /* This implements IEEE 754 decimal floating point arithmetic, but
does not provide a mechanism for setting the rounding mode, or for does not provide a mechanism for setting the rounding mode, or for
generating or handling exceptions. Conversions between decimal generating or handling exceptions. Conversions between decimal
floating point types and other types depend on C library functions. floating point types and other types depend on C library functions.
......
...@@ -65,7 +65,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -65,7 +65,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
DFP_C_TYPE: type of the arguments to the libgcc functions; DFP_C_TYPE: type of the arguments to the libgcc functions;
(eg _Decimal32) (eg _Decimal32)
IEEE_TYPE: the corresponding (encoded) IEEE754R type; IEEE_TYPE: the corresponding (encoded) IEEE754 type;
(eg decimal32) (eg decimal32)
TO_INTERNAL: the name of the decNumber function to convert an TO_INTERNAL: the name of the decNumber function to convert an
...@@ -163,7 +163,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -163,7 +163,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
DFP_C_TYPE_TO: type of the result of dfp to dfp conversion. DFP_C_TYPE_TO: type of the result of dfp to dfp conversion.
IEEE_TYPE_TO: the corresponding (encoded) IEEE754R type. IEEE_TYPE_TO: the corresponding (encoded) IEEE754 type.
TO_ENCODED_TO: the name of the decNumber function to convert an TO_ENCODED_TO: the name of the decNumber function to convert an
internally represented decNumber into the encoded representation internally represented decNumber into the encoded representation
......
...@@ -123,7 +123,7 @@ decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn) ...@@ -123,7 +123,7 @@ decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn)
dn->bits ^= DECNEG; dn->bits ^= DECNEG;
} }
/* Encode a real into an IEEE 754R decimal32 type. */ /* Encode a real into an IEEE 754 decimal32 type. */
void void
encode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED, encode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED,
...@@ -142,7 +142,7 @@ encode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -142,7 +142,7 @@ encode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED,
buf[0] = *(uint32_t *) d32.bytes; buf[0] = *(uint32_t *) d32.bytes;
} }
/* Decode an IEEE 754R decimal32 type into a real. */ /* Decode an IEEE 754 decimal32 type into a real. */
void void
decode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED, decode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED,
...@@ -161,7 +161,7 @@ decode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -161,7 +161,7 @@ decode_decimal32 (const struct real_format *fmt ATTRIBUTE_UNUSED,
decimal_from_decnumber (r, &dn, &set); decimal_from_decnumber (r, &dn, &set);
} }
/* Encode a real into an IEEE 754R decimal64 type. */ /* Encode a real into an IEEE 754 decimal64 type. */
void void
encode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED, encode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED,
...@@ -189,7 +189,7 @@ encode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -189,7 +189,7 @@ encode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED,
} }
} }
/* Decode an IEEE 754R decimal64 type into a real. */ /* Decode an IEEE 754 decimal64 type into a real. */
void void
decode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED, decode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED,
...@@ -217,7 +217,7 @@ decode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -217,7 +217,7 @@ decode_decimal64 (const struct real_format *fmt ATTRIBUTE_UNUSED,
decimal_from_decnumber (r, &dn, &set); decimal_from_decnumber (r, &dn, &set);
} }
/* Encode a real into an IEEE 754R decimal128 type. */ /* Encode a real into an IEEE 754 decimal128 type. */
void void
encode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED, encode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED,
...@@ -249,7 +249,7 @@ encode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -249,7 +249,7 @@ encode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED,
} }
} }
/* Decode an IEEE 754R decimal128 type into a real. */ /* Decode an IEEE 754 decimal128 type into a real. */
void void
decode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED, decode_decimal128 (const struct real_format *fmt ATTRIBUTE_UNUSED,
......
...@@ -20,12 +20,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -20,12 +20,12 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_DFP_H #ifndef GCC_DFP_H
#define GCC_DFP_H #define GCC_DFP_H
/* Encode REAL_VALUE_TYPEs into 32/64/128-bit IEEE 754R encoded values. */ /* Encode REAL_VALUE_TYPEs into 32/64/128-bit IEEE 754 encoded values. */
void encode_decimal32 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *); void encode_decimal32 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *);
void encode_decimal64 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *); void encode_decimal64 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *);
void decode_decimal128 (const struct real_format *, REAL_VALUE_TYPE *, const long *); void decode_decimal128 (const struct real_format *, REAL_VALUE_TYPE *, const long *);
/* Decode 32/64/128-bit IEEE 754R encoded values into REAL_VALUE_TYPEs. */ /* Decode 32/64/128-bit IEEE 754 encoded values into REAL_VALUE_TYPEs. */
void decode_decimal32 (const struct real_format *, REAL_VALUE_TYPE *, const long *); void decode_decimal32 (const struct real_format *, REAL_VALUE_TYPE *, const long *);
void decode_decimal64 (const struct real_format *, REAL_VALUE_TYPE *, const long *); void decode_decimal64 (const struct real_format *, REAL_VALUE_TYPE *, const long *);
void encode_decimal128 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *); void encode_decimal128 (const struct real_format *fmt, long *, const REAL_VALUE_TYPE *);
......
...@@ -1355,14 +1355,13 @@ forward to maintain the port. ...@@ -1355,14 +1355,13 @@ forward to maintain the port.
@itemx --enable-decimal-float=dpd @itemx --enable-decimal-float=dpd
@itemx --disable-decimal-float @itemx --disable-decimal-float
Enable (or disable) support for the C decimal floating point extension Enable (or disable) support for the C decimal floating point extension
that is in the IEEE 754R extension to the IEEE754 floating point that is in the IEEE 754-2008 standard. This is enabled by default only
standard. This is enabled by default only on PowerPC, i386, and on PowerPC, i386, and x86_64 GNU/Linux systems. Other systems may also
x86_64 GNU/Linux systems. Other systems may also support it, but support it, but require the user to specifically enable it. You can
require the user to specifically enable it. You can optionally optionally control which decimal floating point format is used (either
control which decimal floating point format is used (either @samp{bid} @samp{bid} or @samp{dpd}). The @samp{bid} (binary integer decimal)
or @samp{dpd}). The @samp{bid} (binary integer decimal) format is format is default on i386 and x86_64 systems, and the @samp{dpd}
default on i386 and x86_64 systems, and the @samp{dpd} (densely packed (densely packed decimal) format is default on PowerPC systems.
decimal) format is default on PowerPC systems.
@item --enable-fixed-point @item --enable-fixed-point
@itemx --disable-fixed-point @itemx --disable-fixed-point
......
...@@ -495,9 +495,9 @@ These functions return the quotient of @math{@var{a} + i@var{b}} and ...@@ -495,9 +495,9 @@ These functions return the quotient of @math{@var{a} + i@var{b}} and
@node Decimal float library routines @node Decimal float library routines
@section Routines for decimal floating point emulation @section Routines for decimal floating point emulation
@cindex decimal float library @cindex decimal float library
@cindex IEEE-754R @cindex IEEE 754-2008
The software decimal floating point library implements IEEE 754R The software decimal floating point library implements IEEE 754-2008
decimal floating point arithmetic and is only activated on selected decimal floating point arithmetic and is only activated on selected
targets. targets.
......
...@@ -4279,7 +4279,7 @@ decode_decimal_quad (const struct real_format *fmt ATTRIBUTE_UNUSED, ...@@ -4279,7 +4279,7 @@ decode_decimal_quad (const struct real_format *fmt ATTRIBUTE_UNUSED,
decode_decimal128 (fmt, r, buf); decode_decimal128 (fmt, r, buf);
} }
/* Single precision decimal floating point (IEEE 754R). */ /* Single precision decimal floating point (IEEE 754). */
const struct real_format decimal_single_format = const struct real_format decimal_single_format =
{ {
encode_decimal_single, encode_decimal_single,
...@@ -4299,7 +4299,7 @@ const struct real_format decimal_single_format = ...@@ -4299,7 +4299,7 @@ const struct real_format decimal_single_format =
false false
}; };
/* Double precision decimal floating point (IEEE 754R). */ /* Double precision decimal floating point (IEEE 754). */
const struct real_format decimal_double_format = const struct real_format decimal_double_format =
{ {
encode_decimal_double, encode_decimal_double,
...@@ -4319,7 +4319,7 @@ const struct real_format decimal_double_format = ...@@ -4319,7 +4319,7 @@ const struct real_format decimal_double_format =
false false
}; };
/* Quad precision decimal floating point (IEEE 754R). */ /* Quad precision decimal floating point (IEEE 754). */
const struct real_format decimal_quad_format = const struct real_format decimal_quad_format =
{ {
encode_decimal_quad, encode_decimal_quad,
......
...@@ -319,7 +319,7 @@ extern const struct real_format decimal_quad_format; ...@@ -319,7 +319,7 @@ extern const struct real_format decimal_quad_format;
#define REAL_VALUE_FROM_UNSIGNED_INT(r, lo, hi, mode) \ #define REAL_VALUE_FROM_UNSIGNED_INT(r, lo, hi, mode) \
real_from_integer (&(r), mode, lo, hi, 1) real_from_integer (&(r), mode, lo, hi, 1)
/* Real values to IEEE 754R decimal floats. */ /* Real values to IEEE 754 decimal floats. */
/* IN is a REAL_VALUE_TYPE. OUT is an array of longs. */ /* IN is a REAL_VALUE_TYPE. OUT is an array of longs. */
#define REAL_VALUE_TO_TARGET_DECIMAL128(IN, OUT) \ #define REAL_VALUE_TO_TARGET_DECIMAL128(IN, OUT) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment