Skip to content

Commit efe81ec

Browse files
committed
Restore math-macros.h.
1 parent efa7cf5 commit efe81ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libc/include/llvm-libc-macros/math-macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
#define INFINITY __builtin_inf()
3131
#define NAN __builtin_nanf("")
3232

33-
#define FP_ILOGB0 INT_MIN
34-
#define FP_LLOGB0 LONG_MIN
33+
#define FP_ILOGB0 (-INT_MAX - 1)
34+
#define FP_LLOGB0 (-LONG_MAX - 1)
3535

3636
#ifdef __FP_LOGBNAN_MIN
37-
#define FP_ILOGBNAN INT_MIN
38-
#define FP_LLOGBNAN LONG_MIN
37+
#define FP_ILOGBNAN (-INT_MAX - 1)
38+
#define FP_LLOGBNAN (-LONG_MAX - 1)
3939
#else
4040
#define FP_ILOGBNAN INT_MAX
4141
#define FP_LLOGBNAN LONG_MAX

0 commit comments

Comments
 (0)