The documentation (in the standards) for all of fenv.h is rather confusing, but I'm especially confused about feholdexcept and the concept of "non-stop mode" for a floating point exception. As far as I can tell, on any IEEE floating point implementation, exceptions are non-signaling/"non-stop" by default, and the fenv.h interfaces seem to provide no way to enable a signaling mode unless it was the default. Is the whole concept of feholdexcept useless except on non-IEEE systems or systems with nonstandard extensions for setting the signaling exception mask?
What is the use of feholdexcept etc.?
443 Views Asked by R.. GitHub STOP HELPING ICE At
1
There are 1 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EXCEPTION
- Python twisted not catching exception
- Proper use of custom exceptions
- C++ Mongodb driver, not working
- C# console application - Unhandled exception while finding the Available and free Ram space.Getting exact answer in windows forms application
- Hashing String (SHA-256) in an ActionListener class
- Do we have to mention exception type in java?
- How can I make Eclipse (or javac) warn about over-inclusive throws clauses
- Why can an Exception not be rethrown in the BackgroundWorker RunWorkerCompleted event
- How can I set the the expected Exception type for a catch statement with a parameter I've passed into a method?
- Why do I get an IndexOutOfBoundsException when my else should prevent it?
- crypto.BadPaddingException: data hash wrong (EKYC-Response)
- How to print the first line from a traceback stack
- java.lang.ArrayIndexOutOfBoundsException object array
- Passing keyword arguments to custom exceptions - anomaly
- Unauthorised access to folders when creating xml file
Related Questions in FLOATING-POINT
- Significant digits with IEEE 754 float
- Randomizing values accounting for floating point resolution
- Why is this floating point addition result not correct?
- Numerical issue with np.exp()
- Converting float to uint64 and uint32 behaves strangely
- Addition of floating point, Why the First code work
- how divided integer is converted to floating point number with decimal
- Trouble outputting Float value using Jackson library for Java
- Simple and clean java float to string conversion
- Does OCaml have C-like round() and trunc() functions?
- Splitting a floating point number into a sum of two other numbers, without rounding errors
- How to tell if up to floating point round-off, 4 2-d points might lie on a common circle?
- Is it always safe to negate a floating point number
- Why is the value of 1**Inf equal to 1, not NaN?
- Check if given number is Even, Odd or Neither in PHP?
Related Questions in SIGNALS
- FFT Filtering of signal
- VHDL, concurrent signal assignment wrong on FPGA but right in Modelsim
- How to config Ctrl+u to send signal SIGUSR1 from console
- Forwarding signals in bash script which is submitted on the cluster
- Modify Control C Command Signal to Allow Input
- Get Exact Frequency From Digital Signal
- Messing with signals, pipes and forks in C
- Conceptual Questions About Processes and Signals
- starting a new process group from bash script
- How to get the NAME OF an INSTANCE in node.js
- Wait for signal to start generating data from another process in python
- pthreads SIGEV_THREAD and async-safe function calls
- GenerateConsoleCtrlEvent crashes when child process is cmd
- What does signal(SIGPIPE, SIG_IGN); do?
- Synchronizing processes with semaphores and signals in C
Related Questions in FENV
- Can feenableexcept hurt a program performance?
- Why is fetestexcept in C++ compiled to a function call rather than inlined
- C99 fenv.h for MS compilers
- Does C standard's FE_TONEAREST rounding mode guarantee that halfway ties are rounded to even?
- feraiseexcept: different behavior between compilers and lack of documentation for implementation-defined behavior
- How are traps generated for floating point exceptions?
- How to raise different floating point exceptions in C?
- Using fenv.h in MinGW
- What is the use of feholdexcept etc.?
- Floating point exceptions - gcc bug?
- C++ setting floating point exception environment
- fegetenv() clears exception mask on x86_64-linux
- Adding two floating-point numbers
- Does FENV_ACCESS pragma exist in C++11 and higher?
- Why am I generating an undefined reference to _fe_dfl_env in 64-bit Cygwin
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Suppose that you're implementing a library, and you don't know anything about what your callers might do the the floating-point environment before calling your code. They might unmask an exception, and install a custom trap handler that causes division-by-zero to produce the value 42. Suppose that your library depends on having default IEEE-754 behavior for division-by-zero. The
feholdexceptfunction gives you a means to enforce this behavior. The caller's environment, complete with their unmasked exception, can then be restored using thefesetenvfunction.This is admittedly a fairly obscure corner case of usage, but frankly everything in
fenv.his fairly obscure to most programmers.