[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What about _FPU_IEEE?
From: |
Richard B. Kreckel |
Subject: |
Re: What about _FPU_IEEE? |
Date: |
Tue, 17 Jul 2001 15:17:50 +0200 (CEST) |
On Mon, 16 Jul 2001, Andreas Jaeger wrote:
> > When trying to port something to Linux/PA I discovered that fpu_control.h
> > does not define _FPU_IEEE there. I guess this is because _FPU_DEFAULT is
> > just as good there? I need to set __fpu_control to _FPU_IEEE. What is
> > the suggested strategy on glibc? Just use _FPU_DEFAULT if _FPU_IEEE is
> > not defined? Is this going to give me the expected behaviour on all
> > architectures?
>
> You shouldn't use fpu_control.h at all, use the <fenv.h> functions,
> those are available for all architectures and most of them are
> specified by ISO C99,
Err, I need to manipulate the FPU control register, at least on i386 and
m68k. <fenv.h> does not seem to be appropiate. I would be happy to be
proven wrong, though...
Regards
-richy.
--
Richard B. Kreckel
<address@hidden>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>