Path: blob/main/system/lib/llvm-libc/hdr/math_macros.h
6168 views
//===-- Definition of macros from math.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_MATH_MACROS_H9#define LLVM_LIBC_HDR_MATH_MACROS_H1011#ifdef LIBC_FULL_BUILD1213#include "include/llvm-libc-macros/math-macros.h"1415#else // Overlay mode1617// GCC will include CXX headers when __cplusplus is defined. This behavior18// can be suppressed by defining _GLIBCXX_INCLUDE_NEXT_C_HEADERS.19#if defined(__GNUC__) && !defined(__clang__)20#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS21#endif22#include <math.h>2324// Some older math.h header does not have FP_INT_* constants yet.25#ifndef FP_INT_UPWARD26#define FP_INT_UPWARD 027#endif // FP_INT_UPWARD2829#ifndef FP_INT_DOWNWARD30#define FP_INT_DOWNWARD 131#endif // FP_INT_DOWNWARD3233#ifndef FP_INT_TOWARDZERO34#define FP_INT_TOWARDZERO 235#endif // FP_INT_TOWARDZERO3637#ifndef FP_INT_TONEARESTFROMZERO38#define FP_INT_TONEARESTFROMZERO 339#endif // FP_INT_TONEARESTFROMZERO4041#ifndef FP_INT_TONEAREST42#define FP_INT_TONEAREST 443#endif // FP_INT_TONEAREST4445#endif // LLVM_LIBC_FULL_BUILD4647#endif // LLVM_LIBC_HDR_MATH_MACROS_H484950