#ifndef LLVM_LIBC_SRC_MATH_GENERIC_SINCOSF_UTILS_H
#define LLVM_LIBC_SRC_MATH_GENERIC_SINCOSF_UTILS_H
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/cpu_features.h"
#if defined(LIBC_TARGET_CPU_HAS_FMA)
#include "range_reduction_fma.h"
using LIBC_NAMESPACE::fma::FAST_PASS_BOUND;
using LIBC_NAMESPACE::fma::large_range_reduction;
using LIBC_NAMESPACE::fma::small_range_reduction;
#else
#include "range_reduction.h"
FAST_PASS_BOUND;
large_range_reduction;
small_range_reduction;
#endif
namespace LIBC_NAMESPACE_DECL {
const double SIN_K_PI_OVER_32[64] = …;
static LIBC_INLINE void sincosf_poly_eval(int64_t k, double y, double &sin_k,
double &cos_k, double &sin_y,
double &cosm1_y) { … }
LIBC_INLINE void sincosf_eval(double xd, uint32_t x_abs, double &sin_k,
double &cos_k, double &sin_y, double &cosm1_y) { … }
static LIBC_INLINE int64_t range_reduction_sincospi(double x, double &y) { … }
LIBC_INLINE void sincospif_eval(double xd, double &sin_k, double &cos_k,
double &sin_y, double &cosm1_y) { … }
}
#endif