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_MACROS_FENV_MACROS_H
10 #define __LLVM_LIBC_MACROS_FENV_MACROS_H
12 #define FE_DIVBYZERO 1
16 #define FE_UNDERFLOW 16
17 #define FE_ALL_EXCEPT \
18 (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
20 #define FE_DOWNWARD 0x400
21 #define FE_TONEAREST 0
22 #define FE_TOWARDZERO 0xC00
23 #define FE_UPWARD 0x800
25 #define FE_DFL_ENV ((fenv_t *)-1)
27 #endif // __LLVM_LIBC_MACROS_FENV_MACROS_H