support for ieee754 floating point standard under Linux

support for ieee754 floating point standard under Linux

Post by Tobias Muelle » Sat, 23 May 1998 04:00:00



I need to control the direction of rounding for floating point
operations under Linux according to the ieee 754 standard. I couldn'd
find any function in the Linux libraries to do that. Does anyone have an
idea?

Please reply also by mail.
Cheers
-- Tobias
-------------------------------------------------
Tobias Mller, http://www.ps.uni-sb.de/~tmueller/

 
 
 

support for ieee754 floating point standard under Linux

Post by Ben Pfaf » Sat, 23 May 1998 04:00:00


   I need to control the direction of rounding for floating point
   operations under Linux according to the ieee 754 standard. I couldn'd
   find any function in the Linux libraries to do that. Does anyone have an
   idea?

__setfpucw

 
 
 

support for ieee754 floating point standard under Linux

Post by Ulrich Dreppe » Sat, 23 May 1998 04:00:00



> __setfpucw

Better don't propagate this function too much.  glibc 2.1 will provide
the functionality from ISO C 9x to control must IEEE features of the
FPU.  This seems to work already for all the platforms we are
supporting.

-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

 
 
 

support for ieee754 floating point standard under Linux

Post by Bill Metzenth » Mon, 25 May 1998 04:00:00




>> __setfpucw

>Better don't propagate this function too much.  glibc 2.1 will provide
>the functionality from ISO C 9x to control must IEEE features of the
>FPU.  This seems to work already for all the platforms we are
>supporting.

I have software on my web pages which implements much of the C9x stuff
(although I did it a while ago based upon the docs of the NCEG) for
controlling the FPU and handling exceptions.  I haven't looked at
the glibc-2.1 stuff but it should be roughly equivalent.

--
-----------------------------------------------------------------------------
Bill Metzenthen        | See http://www.suburbia.net/~billm/ for information


Melbourne, Australia   | the floating point environment on 80x86 Linux.
-----------------------------------------------------------------------------

 
 
 

1. Network standard for floating point numbers? [summary]

[ I'm sorry I couldn't thread this to my original posting, but it
expired on our news server. ]


I would like to thank everyone who replied.  The nearly unanimous

gave the best summary:

The xdr library seems to be available on every machine that supports
nfs and rpc -- just about everybody these days.  xdr uses the IEEE-754
standard for floating point, so the conversion from double is a no-op
for most machines.

Given the near universal usage of IEEE-754 representation, a fact I
was previously unaware of, I have decided to use it directly in my
protocol.  To keep things simple, I have decided not to use the xdr
library until such time as a conversion to IEEE-754 is actually
required.

Peter Johansson

2. elm mail-filter

3. egcs compatibility with IEEE floating point standard

4. Soundman Wave and Linux!!! <<>> Advice needed QUICK!!!

5. Network standard for floating point numbers?

6. libjpeg error

7. Does Linux support hardware floating point?

8. cc can't find include files

9. Does ksh not support floating point print out?

10. Any floating point support in kernel

11. GDB and Floating Point Support Help!

12. floating point support

13. tunnel point to point vs physical point to point