Skip to content

Commit 38aee5a

Browse files
author
Colin Robertson
authored
Merge pull request #2 from manbearian/patch-1
I made a few updates
2 parents 79541cf + 93fefc2 commit 38aee5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/preprocessor/fenv-access.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@ By default, **fenv_access** is **off**. The compiler assumes your code doesn't a
2020

2121
Enable **fenv_access** if your code tests floating-point status flags, exceptions, or sets control mode flags. The compiler disables floating-point optimizations, so your code can access the floating-point environment consistently.
2222

23-
For more information on floating-point behavior, see [/fp (Specify Floating-Point Behavior)](../build/reference/fp-specify-floating-point-behavior.md).
23+
The [/fp:strict] command-line option automatically enables **fenv_access**. For more information on this and other floating-point behavior, see [/fp (Specify Floating-Point Behavior)](../build/reference/fp-specify-floating-point-behavior.md).
2424

2525
There are restrictions on the ways you can use the **fenv_access** pragma in combination with other floating-point settings:
2626

2727
- You can't enable **fenv_access** unless precise semantics are enabled. Precise semantics can be enabled either by the [float_control](float-control.md) pragma, or by using the [/fp:precise](../build/reference/fp-specify-floating-point-behavior.md) or [/fp:strict](../build/reference/fp-specify-floating-point-behavior.md) compiler options. The compiler defaults to **/fp:precise** if no other floating-point command-line option is specified.
2828

2929
- You can't use **float_control** to disable precise semantics when **fenv_access(on)** is set.
3030

31-
These restrictions mean the order of some floating-point pragmas is significant. For more information, see [float_control](float-control.md).
32-
3331
The kinds of optimizations that are subject to **fenv_access** are:
3432

3533
- Global common subexpression elimination

0 commit comments

Comments
 (0)