4#ifndef TETL_CMATH_ATANH_HPP
5#define TETL_CMATH_ATANH_HPP
7#include <etl/_3rd_party/gcem/gcem.hpp>
8#include <etl/_concepts/integral.hpp>
9#include <etl/_type_traits/is_constant_evaluated.hpp>
15inline constexpr struct atanh {
16 template <
typename Float>
17 [[nodiscard]]
constexpr auto operator()(Float arg)
const noexcept -> Float
19#if not defined(__AVR__)
21 #if __has_builtin(__builtin_atanhf)
22 if constexpr (etl::same_as<Float,
float>) {
23 return __builtin_atanhf(arg);
26 #if __has_builtin(__builtin_atanh)
27 if constexpr (etl::same_as<Float,
double>) {
28 return __builtin_atanh(arg);
33 return etl::detail::gcem::atanh(arg);
46 return etl::detail::atanh(arg);
50 return etl::detail::atanh(arg);
54 return etl::detail::atanh(arg);
58 return etl::detail::atanh(arg);
62 return etl::detail::atanh(arg);
constexpr auto atanh(float arg) noexcept -> float
Definition atanh.hpp:44
constexpr auto atanh(double arg) noexcept -> double
Definition atanh.hpp:52
constexpr auto atanh(long double arg) noexcept -> long double
Definition atanh.hpp:56
constexpr auto atanhl(long double arg) noexcept -> long double
Definition atanh.hpp:60
constexpr auto atanhf(float arg) noexcept -> float
Definition atanh.hpp:48
Definition adjacent_find.hpp:9
constexpr auto is_constant_evaluated() noexcept -> bool
Detects whether the function call occurs within a constant-evaluated context. Returns true if the eva...
Definition is_constant_evaluated.hpp:17