From Jason Turner

[cfenv.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpkr87fly_/{from.md → to.md} +27 -26
tmp/tmpkr87fly_/{from.md → to.md} RENAMED
@@ -1,19 +1,19 @@
1
  ### Header `<cfenv>` synopsis <a id="cfenv.syn">[[cfenv.syn]]</a>
2
 
3
  ``` cpp
4
  #define FE_ALL_EXCEPT see below
5
- #define FE_DIVBYZERO see below
6
- #define FE_INEXACT see below
7
- #define FE_INVALID see below
8
- #define FE_OVERFLOW see below
9
- #define FE_UNDERFLOW see below
10
 
11
- #define FE_DOWNWARD see below
12
- #define FE_TONEAREST see below
13
- #define FE_TOWARDZERO see below
14
- #define FE_UPWARD see below
15
 
16
  #define FE_DFL_ENV see below
17
 
18
  namespace std {
19
  // types
@@ -38,30 +38,31 @@ namespace std {
38
  ```
39
 
40
  The contents and meaning of the header `<cfenv>` are the same as the C
41
  standard library header `<fenv.h>`.
42
 
43
- [*Note 1*: This International Standard does not require an
44
- implementation to support the `FENV_ACCESS` pragma; it is
45
- *implementation-defined* ([[cpp.pragma]]) whether the pragma is
46
- supported. As a consequence, it is *implementation-defined* whether
47
- these functions can be used to test floating-point status flags, set
48
- floating-point control modes, or run under non-default mode settings. If
49
- the pragma is used to enable control over the floating-point
50
- environment, this International Standard does not specify the effect on
51
- floating-point evaluation in constant expressions. — *end note*]
52
 
53
- The floating-point environment has thread storage duration (
54
- [[basic.stc.thread]]). The initial state for a thread’s floating-point
55
  environment is the state of the floating-point environment of the thread
56
- that constructs the corresponding `thread` object (
57
- [[thread.thread.class]]) at the time it constructed the object.
 
58
 
59
  [*Note 2*: That is, the child thread gets the floating-point state of
60
  the parent thread at the time of the child’s creation. — *end note*]
61
 
62
- A separate floating-point environment shall be maintained for each
63
- thread. Each function accesses the environment corresponding to its
64
- calling thread.
65
 
66
- ISO C 7.6
67
 
 
1
  ### Header `<cfenv>` synopsis <a id="cfenv.syn">[[cfenv.syn]]</a>
2
 
3
  ``` cpp
4
  #define FE_ALL_EXCEPT see below
5
+ #define FE_DIVBYZERO see below // optional
6
+ #define FE_INEXACT see below // optional
7
+ #define FE_INVALID see below // optional
8
+ #define FE_OVERFLOW see below // optional
9
+ #define FE_UNDERFLOW see below // optional
10
 
11
+ #define FE_DOWNWARD see below // optional
12
+ #define FE_TONEAREST see below // optional
13
+ #define FE_TOWARDZERO see below // optional
14
+ #define FE_UPWARD see below // optional
15
 
16
  #define FE_DFL_ENV see below
17
 
18
  namespace std {
19
  // types
 
38
  ```
39
 
40
  The contents and meaning of the header `<cfenv>` are the same as the C
41
  standard library header `<fenv.h>`.
42
 
43
+ [*Note 1*: This document does not require an implementation to support
44
+ the `FENV_ACCESS` pragma; it is *implementation-defined* [[cpp.pragma]]
45
+ whether the pragma is supported. As a consequence, it is
46
+ *implementation-defined* whether these functions can be used to test
47
+ floating-point status flags, set floating-point control modes, or run
48
+ under non-default mode settings. If the pragma is used to enable control
49
+ over the floating-point environment, this document does not specify the
50
+ effect on floating-point evaluation in constant
51
+ expressions. — *end note*]
52
 
53
+ The floating-point environment has thread storage duration
54
+ [[basic.stc.thread]]. The initial state for a thread’s floating-point
55
  environment is the state of the floating-point environment of the thread
56
+ that constructs the corresponding `thread` object
57
+ [[thread.thread.class]] or `jthread` object [[thread.jthread.class]] at
58
+ the time it constructed the object.
59
 
60
  [*Note 2*: That is, the child thread gets the floating-point state of
61
  the parent thread at the time of the child’s creation. — *end note*]
62
 
63
+ A separate floating-point environment is maintained for each thread.
64
+ Each function accesses the environment corresponding to its calling
65
+ thread.
66
 
67
+ See also: ISO C 7.6
68