1 //===-- Definition of macros from fenv.h ----------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_HDR_FENV_MACROS_H
10 #define LLVM_LIBC_HDR_FENV_MACROS_H
12 #ifdef LIBC_FULL_BUILD
14 #include "include/llvm-libc-macros/fenv-macros.h"
20 // In some environment, FE_ALL_EXCEPT is set to 0 and the remaining exceptions
23 #define FE_DIVBYZERO 0
24 #endif // FE_DIVBYZERO
39 #define FE_UNDERFLOW 0
40 #endif // FE_UNDERFLOW
42 // Rounding mode macros might be missing.
44 #define FE_DOWNWARD 0x400
48 #define FE_TONEAREST 0
49 #endif // FE_TONEAREST
52 #define FE_TOWARDZERO 0xC00
53 #endif // FE_TOWARDZERO
56 #define FE_UPWARD 0x800
59 #endif // LLVM_LIBC_FULL_BUILD
61 #endif // LLVM_LIBC_HDR_FENV_MACROS_H