1fex_merge_flags(3M)     Mathematical Library Functions     fex_merge_flags(3M)
2
3
4

NAME

6       fex_merge_flags - manage the floating point environment
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <fenv.h>
11
12       void fex_merge_flags(const fenv_t *envp);
13
14

DESCRIPTION

16       The  fex_merge_flags()  function  copies  into  the current environment
17       those exception flags that are set in the  environment  represented  by
18       the  object  pointed  to  by  envp.  The argument envp must point to an
19       object set by a call to feholdexcept(3M) or fegetenv(3M)  or  equal  to
20       the  macro  FE_DFL_ENV.   The fex_merge_flags() function does not raise
21       any exceptions, but only sets its flags.
22

RETURN VALUES

24       The fex_merge_flags function does not return a value.
25

ATTRIBUTES

27       See attributes(5) for descriptions of the following attributes:
28
29
30
31
32       ┌───────────────────────────────────────────────────────────┐
33       │ATTRIBUTE TYPE                ATTRIBUTE VALUE              │
34       │Availability                  SUNWlibms, SUNWlmsx          │
35       │Interface Stability           Stable                       │
36       │MT-Level                      MT-Safe                      │
37       └───────────────────────────────────────────────────────────┘
38

SEE ALSO

40       feclearexcept(3M),   fegetenv(3M),    fesetround(3M),    fesetprec(3M),
41       fex_set_handling(3M), fex_set_log(3M), attributes(5)
42
43
44       Numerical Computation Guide
45

NOTES

47       In  a multithreaded program, the fex_merge_flags() function affects the
48       floating point environment only for the calling thread.
49
50
51       The fex_merge_flags() function automatically  installs  and  deinstalls
52       SIGFPE  handlers  and  sets and clears the trap enable mode bits in the
53       floating point status register as needed.   If  a  program  uses  these
54       functions  and attempts to install a SIGFPE handler or control the trap
55       enable mode bits independently, the resulting behavior is not defined.
56
57
58
59SunOS 5.11                        12 Jul 2006              fex_merge_flags(3M)
Impressum