4#ifndef TETL_CMATH_ACOSH_HPP
5#define TETL_CMATH_ACOSH_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 acosh {
19 template <
typename Float>
20 [[nodiscard]]
constexpr auto operator()(Float arg)
const noexcept -> Float
22#if not defined(__AVR__)
24 #if __has_builtin(__builtin_acoshf)
25 if constexpr (
etl::same_as<Float,
float>) {
26 return __builtin_acoshf(arg);
29 #if __has_builtin(__builtin_acosh)
30 if constexpr (
etl::same_as<Float,
double>) {
31 return __builtin_acosh(arg);
36 return etl::detail::gcem::acosh(arg);
49 return etl::detail::acosh(arg);
53 return etl::detail::acosh(arg);
57 return etl::detail::acosh(arg);
61 return etl::detail::acosh(arg);
65 return etl::detail::acosh(arg);
constexpr auto acosh(long double arg) noexcept -> long double
Definition acosh.hpp:59
constexpr auto acosh(double arg) noexcept -> double
Definition acosh.hpp:55
constexpr auto acoshl(long double arg) noexcept -> long double
Definition acosh.hpp:63
constexpr auto acosh(float arg) noexcept -> float
Definition acosh.hpp:47
constexpr auto acoshf(float arg) noexcept -> float
Definition acosh.hpp:51
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