[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:42:47 PDT 2024


lntue wrote:

> > https://github.com/llvm/llvm-project/blob/main/libc/test/src/math/atan2f_test.cpp#L80-L81
> 
> thanks, and how about this case ? https://github.com/llvm/llvm-project/blob/main/libc/test/src/math/atan2f_test.cpp#L85-L87
> 
> Should I create a FPBits from result and perform is_nan and is_inf check for it?

Yes, that would be the most straightforward way to do it.  And for `FPBits`, `is_inf_or_nan()` is the same as `is_inf() || is_nan()`

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


More information about the libc-commits mailing list