4#ifndef TETL_CMATH_ASINH_HPP
5#define TETL_CMATH_ASINH_HPP
7#include <etl/_config/all.hpp>
9#include <etl/_3rd_party/gcem/gcem.hpp>
10#include <etl/_concepts/integral.hpp>
11#include <etl/_concepts/same_as.hpp>
12#include <etl/_type_traits/is_constant_evaluated.hpp>
18inline constexpr struct asinh {
19 template <
typename Float>
20 [[nodiscard]]
constexpr auto operator()(Float arg)
const noexcept -> Float
22#if not defined(__AVR__)
24 #if __has_builtin(__builtin_asinhf)
25 if constexpr (
etl::same_as<Float,
float>) {
26 return __builtin_asinhf(arg);
29 #if __has_builtin(__builtin_asinh)
30 if constexpr (
etl::same_as<Float,
double>) {
31 return __builtin_asinh(arg);
36 return etl::detail::gcem::asinh(arg);
49 return etl::detail::asinh(arg);
53 return etl::detail::asinh(arg);
57 return etl::detail::asinh(arg);
61 return etl::detail::asinh(arg);
65 return etl::detail::asinh(arg);
constexpr auto asinh(long double arg) noexcept -> long double
Definition asinh.hpp:59
constexpr auto asinhf(float arg) noexcept -> float
Definition asinh.hpp:51
constexpr auto asinhl(long double arg) noexcept -> long double
Definition asinh.hpp:63
constexpr auto asinh(double arg) noexcept -> double
Definition asinh.hpp:55
constexpr auto asinh(float arg) noexcept -> float
Definition asinh.hpp:47
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