[libc-commits] [libc] [libc] Create a separate proxy header for math-function-macros.h (PR #98430)
via libc-commits
libc-commits at lists.llvm.org
Sat Jul 27 18:04:05 PDT 2024
lntue wrote:
> @lntue some of the tests derive the type directly, thus I can't use the functions is_nan() and is_inf() from FPBits, do u have any recommendations to handle this? For example this test - https://github.com/llvm/llvm-project/blob/main/libc/test/src/math/atan2f_test.cpp#L80-L81
For something like that, you can feed the floating point variables back to `FPBits` class without issues, like:
```
if (FPBits(x).is_inf_or_nan()) ...
```
https://github.com/llvm/llvm-project/pull/98430
More information about the libc-commits
mailing list