summaryrefslogtreecommitdiff
path: root/gcc/f/g77.texi
diff options
context:
space:
mode:
authortoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-19 18:57:05 +0000
committertoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-19 18:57:05 +0000
commit23e5c4338513e51d78c6441e4901b126bb7a786a (patch)
treebd4a8f9e5b8cafb64e42b97bcb5c5eb5b63bad3d /gcc/f/g77.texi
parente6b3f1640e913a2a0ac98d84645ee1f4df3a551b (diff)
downloadgcc-23e5c4338513e51d78c6441e4901b126bb7a786a.tar.gz
Sun Nov 19 17:29:22 2000 Matthias Klose <doko@marvin.itso-berlin.de>
* g77.texi (Floating-point precision): Adjust example to work with glibc (>= 2.1). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37568 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/f/g77.texi')
-rw-r--r--gcc/f/g77.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/f/g77.texi b/gcc/f/g77.texi
index 3cc4b0ff105..72a793c76c2 100644
--- a/gcc/f/g77.texi
+++ b/gcc/f/g77.texi
@@ -10476,9 +10476,12 @@ and m68k GNU systems you can do this with a technique similar to that
for turning on floating-point exceptions
(@pxref{Floating-point Exception Handling}).
The control word could be set to double precision by
-replacing the @code{__setfpucw} call with one like this:
+replacing the @code{__setfpucw} call or the @code{_FPU_SETCW} macro with one like this:
@smallexample
- __setfpucw ((_FPU_DEFAULT & ~_FPU_EXTENDED) | _FPU_DOUBLE);
+@{
+ fpu_control_t cw = (_FPU_DEFAULT & ~_FPU_EXTENDED) | _FPU_DOUBLE;
+ _FPU_SETCW(cw);
+@}
@end smallexample
(It is not clear whether this has any effect on the operation of the GNU
maths library, but we have no evidence of it causing trouble.)