[libc-commits] [libc] [libc][math] Optimize misc basic math operations with builtins when available (PR #99037)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 09:46:35 PDT 2024


lntue wrote:

> The problem is that `maxss` and `minss` don't behave the same as IEEE 754 `maximumNumber` and `minimumNumber`. If one or both inputs are NaNs, `maxss` and `minss` just return the second input, whereas `maximumNumber` and `minimumNumber` return a quiet NaN unless both inputs are signaling NaNs.

Let skip the builtin / hardware instructions for these functions.

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


More information about the libc-commits mailing list