Skip to content

Commit

Permalink
[libc] Include FP_* macros in math.h (#84996)
Browse files Browse the repository at this point in the history
These are used unconditionally by libc++ math.h.

This is related to issue #84879.
  • Loading branch information
petrhosek committed Mar 13, 2024
1 parent 6411183 commit bb5921e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libc/include/llvm-libc-macros/math-macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

#include "limits-macros.h"

#define FP_NAN 0
#define FP_INFINITE 1
#define FP_ZERO 2
#define FP_SUBNORMAL 3
#define FP_NORMAL 4

#define MATH_ERRNO 1
#define MATH_ERREXCEPT 2

Expand Down

0 comments on commit bb5921e

Please sign in to comment.