From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b89d959a1ffa77cf X-Google-Attributes: gidfee84,public From: carlson@kikkin.zko.dec.com (Tom Carlson) Subject: Re: DEC C++ suggestions Date: 1996/05/31 Message-ID: <4on3gk$4lo@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 157757532 distribution: world references: <4of1a5$5m9@tribune.mayo.edu> <4of75j$668@tribune.mayo.edu> organization: Digital Equipment Corporation reply-to: carlson@kikkin.zko.dec.com (Tom Carlson) newsgroups: comp.unix.osf.osf1 In article <4of75j$668@tribune.mayo.edu>, stan@chirpa.mayo.edu (Andrew Staniszewski) writes: |> |>Dirk Grunwald |>Organization: University of Colorado |>Office: 7-10 ECOT (303) 492-0452 |>Www: http://www.cs.colorado.edu/~grunwald/Home.html |>wrote: |> |>>In what was does DEC C++ not support IEEE floating point? |> |>see the ieee flags on the c89 compiler, expermentation has proven that |>they do not work with the cxx compiler. DEC C++ V5.3 on up supports the following IEEE-related switches, consistent with the same switches for DEC C on Digital Unix. To the best of my knowledge, there are no outstanding problems in this support. -denorm Force denormalized constant numbers to zero when IEEE sup- port is enabled. -fprm option Specify rounding mode. The following options are supported: c Round toward 0 (chop). d Set rounding mode for IEEE floating-point instructions dynamically, as determined from the contents of the floating-point control register. The dynamic rounding mode can be changed or read at execution time by a call to write_rnd(3) or read_rnd(3). If you specify this option, the IEEE floating-point rounding mode defaults to round to nearest. m Round toward minus infinity. n Set normal rounding mode (unbiased round to nearest). This is the default. -fptm option Specify trapping mode. Only one option can be used on a com- mand line. The following options are supported: n Generate instructions that do not trigger floating- point underflow or inexact trapping modes. Any float- ing point overflow, divide-by-zero, or invalid opera- tion will unconditionally generate a trap. This is the default. u Generate intructions that trap floating-point under- flow, overflow, divide-by-zero, and invalid operations. -ieee Support all portable features of the IEEE Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Standard 754- 1985), including the treatment of denormalized numbers, NaNs, infinitities, and the handling of error cases. This flag also sets the _IEEE_FP macro. Tom -- Thomas Carlson, DEC C/ DEC C++ carlson@decc.enet.dec.com Digital Equipment Corporation, ZK2-3/N30 110 Spitbrook Rd, Nashua, NH 03062