[libc-commits] [libc] [libc] Add __FE_DENORM to the fenv macros (PR #91353)

via libc-commits libc-commits at lists.llvm.org
Tue May 7 09:48:24 PDT 2024


================
@@ -9,11 +9,12 @@
 #ifndef LLVM_LIBC_MACROS_FENV_MACROS_H
 #define LLVM_LIBC_MACROS_FENV_MACROS_H
 
-#define FE_DIVBYZERO 1
-#define FE_INEXACT 2
-#define FE_INVALID 4
-#define FE_OVERFLOW 8
-#define FE_UNDERFLOW 16
+#define FE_DIVBYZERO 0x1
+#define FE_INEXACT 0x2
+#define FE_INVALID 0x4
+#define FE_OVERFLOW 0x8
+#define FE_UNDERFLOW 0x10
+#define __FE_DENORM 0x20
----------------
lntue wrote:

For overlay mode, anything we fill in `hdr/fenv_macros.h` should only be used internally.  So it is kind of the best place to filling in any macros that are missing from the system/compiler headers.  And if it's not presented in the system header, it shouldn't matter much which value you assign to it, as long as it is different from the rest of the `FE_*` right?

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


More information about the libc-commits mailing list