If you want some replacement that works (for the time being), you may try my GitHub repo mentioned above and in the other thread quoted before. They have been tested with 9 compilers (all that I could find) with aggressive optimization flags. I will be very happy to see where they do not work, and if possible, some suggested alternative implementation will be highly appreciated. Many thanks!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Challenge: Testing Inf and NaN with `gfortran-13 -Ofast`
|
38 | 1846 | October 3, 2023 | |
Checking Inf/NaN when compilers are invoked with aggressive optimization flags | 2 | 717 | September 16, 2021 | |
Is this expected? Fortran standard is not respected by `gfortran --fdefault-integer-8`, `ifort -i8`, or `nagfor -i8` | 7 | 1374 | September 6, 2021 | |
Should 0.0/0.0 be NaN? | 17 | 890 | March 10, 2024 | |
Function to detect NaN values
|
7 | 450 | April 16, 2024 |