[libc-commits] [libc] [libc] Provide isnan, isnanf and isnanl functions (PR #96008)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jun 27 12:56:18 PDT 2024


================
@@ -17,4 +17,6 @@
 
 %%public_api()
 
+#define isnan(x) __builtin_isnan(x)
----------------
michaelrj-google wrote:

For longer term maintainability I'd like to go with a design like what @lntue proposed where the primary math macros are included before `%%public_api` and the macros that might also be functions are defined in a separate header after.

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


More information about the libc-commits mailing list