Path: blob/main/system/lib/llvm-libc/hdr/fenv_macros.h
6175 views
//===-- Definition of macros from fenv.h ----------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_HDR_FENV_MACROS_H9#define LLVM_LIBC_HDR_FENV_MACROS_H1011#ifdef LIBC_FULL_BUILD1213#include "include/llvm-libc-macros/fenv-macros.h"1415#else // Overlay mode1617#include <fenv.h>1819// In some environment, FE_ALL_EXCEPT is set to 0 and the remaining exceptions20// FE_* are missing.21#ifndef FE_DIVBYZERO22#define FE_DIVBYZERO 023#endif // FE_DIVBYZERO2425#ifndef FE_INEXACT26#define FE_INEXACT 027#endif // FE_INEXACT2829#ifndef FE_INVALID30#define FE_INVALID 031#endif // FE_INVALID3233#ifndef FE_OVERFLOW34#define FE_OVERFLOW 035#endif // FE_OVERFLOW3637#ifndef FE_UNDERFLOW38#define FE_UNDERFLOW 039#endif // FE_UNDERFLOW4041// Rounding mode macros might be missing.42#ifndef FE_DOWNWARD43#define FE_DOWNWARD 0x40044#endif // FE_DOWNWARD4546#ifndef FE_TONEAREST47#define FE_TONEAREST 048#endif // FE_TONEAREST4950#ifndef FE_TOWARDZERO51#define FE_TOWARDZERO 0xC0052#endif // FE_TOWARDZERO5354#ifndef FE_UPWARD55#define FE_UPWARD 0x80056#endif // FE_UPWARD5758#endif // LLVM_LIBC_FULL_BUILD5960#endif // LLVM_LIBC_HDR_FENV_MACROS_H616263