Re: Actual F.P. implementation?

Vladimir Makarov <>
25 Nov 1999 01:49:44 -0500

          From comp.compilers

Related articles
Actual F.P. implementation? (1999-11-23)
Re: Actual F.P. implementation? (Vladimir Makarov) (1999-11-25)
Re: Actual F.P. implementation? (Juergen Kahrs) (1999-11-25)
| List of all articles for this month |

From: Vladimir Makarov <>
Newsgroups: comp.compilers
Date: 25 Nov 1999 01:49:44 -0500
Organization: Cygnus Solutions
References: 99-11-143
Keywords: arithmetic wrote:
> Looking for sources/info. on how to implement floating point
> mul/div (also add/sub) for IEEE 754 32-bit _or_ 64-bit.

You could look at file fp-bit.c (in gcc/config) or floatlib.c (in dir.
gcc) in gcc sources

You can find another code in COCOM toolset (package IEEE in
Ammunition) which is placed on

The first implementations are simpler and faster.

The second implementation is more accurate (rounding, NaN, quite NaN,
status bits, sticky status bits, exceptions, trap masks). This
implementation can be easily used to implement 128-bit floating point
numbers because it is based on another package arithm (multiple
precision arithmetic).

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.