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 | 1779 | October 3, 2023 | |
Checking Inf/NaN when compilers are invoked with aggressive optimization flags | 2 | 706 | September 16, 2021 | |
Is this expected? Fortran standard is not respected by `gfortran --fdefault-integer-8`, `ifort -i8`, or `nagfor -i8` | 7 | 1349 | September 6, 2021 | |
Function to detect NaN values
|
7 | 345 | April 16, 2024 | |
1/inf =? ifort says NaN | 7 | 972 | December 9, 2022 |