[libc-commits] [libc] [libc][mathvec] Require matching infinities in ULP comparisons (PR #241107)

via libc-commits libc-commits at lists.llvm.org
Wed Nov 18 20:05:07 PST 2026


sriramshastry wrote:

Thanks, that makes sense. With a nonzero ULP tolerance, overflowing to `inf` right at the edge (like `exp(x)`) is a legitimate result, so requiring bit-identical infinities there is too strict. Exact comparisons (`TOL == 0`) already require matching infinities. I'll close this PR rather than change the tolerance semantics.

https://github.com/llvm/llvm-project/pull/241107


More information about the libc-commits mailing list