This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Clang/GCC builtins to avoid UB in computation of NaN and infinity
Clang recently began rejecting this code as not being a constant expression: double x = 1.0 / 0.0; GCC has and likely will continue to support folding that to infinity, so this only adds ifdefs for Clang via __has_builtin.
- Loading branch information