#include "src/math/tan.h"
#include "hdr/errno_macros.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/double_double.h"
#include "src/__support/FPUtil/dyadic_float.h"
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h"
#include "src/__support/macros/properties/cpu_features.h"
#include "src/math/generic/range_reduction_double_common.h"
#ifdef LIBC_TARGET_CPU_HAS_FMA
#include "range_reduction_double_fma.h"
#else
#include "range_reduction_double_nofma.h"
#endif
namespace LIBC_NAMESPACE_DECL {
DoubleDouble;
Float128;
namespace {
LIBC_INLINE double tan_eval(const DoubleDouble &u, DoubleDouble &result) { … }
#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
[[maybe_unused]] Float128 tan_eval(const Float128 &u) { … }
[[maybe_unused]] Float128 newton_raphson_div(const Float128 &a, Float128 b,
double q) { … }
#endif
}
LLVM_LIBC_FUNCTION(double, tan, (double x)) { … }
}