This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: incorrect defiition of _FPU_IEEE for ppc linux?
- To: khendricks at ivey dot uwo dot ca
- Subject: Re: incorrect defiition of _FPU_IEEE for ppc linux?
- From: Andreas Jaeger <aj at suse dot de>
- Date: 19 Apr 2001 14:39:45 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <01041908173802.25891@localhost>
Kevin B.Hendricks <khendricks@ivey.uwo.ca> writes:
> Hi,
>
> I ran into a problem while porting OpenOffice 625 to ppc linux. To turn off
> exceptions under linux they set the fpu_control word to _FPU_IEEE. This
> works under x86 linux.
>
> Under ppc linux, in fpu_control.h _FPU_IEEE sets the control word to
> 0x000000F0 which actually enables overflow, underflow, divide by zero,
> and invalid fpu exceptions. _FPU_DEFAULT actually disables them.
>
> Isn't fpu_control.h supplied by glibc?
Not for all architectures! Use the ISO C99 functions from <fenv.h>
for this to do it in a portable way on (most) supported architectures.
> If so, shouldn't _FPU_IEEE be actually disabling fpu exceptions under ppc
> linux and not enabling them?
>
> Is this an issue in current glibc CVS too?
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj