tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ceil.hpp
Go to the documentation of this file.
1
2// SPDX-License-Identifier: BSL-1.0
3
4#ifndef TETL_CMATH_CEIL_HPP
5#define TETL_CMATH_CEIL_HPP
6
7#include <etl/_3rd_party/gcem/gcem.hpp>
9
10namespace etl {
11
14
17[[nodiscard]] constexpr auto ceil(float arg) noexcept -> float { return etl::detail::gcem::ceil(arg); }
18[[nodiscard]] constexpr auto ceilf(float arg) noexcept -> float { return etl::detail::gcem::ceil(arg); }
19[[nodiscard]] constexpr auto ceil(double arg) noexcept -> double { return etl::detail::gcem::ceil(arg); }
20[[nodiscard]] constexpr auto ceil(long double arg) noexcept -> long double { return etl::detail::gcem::ceil(arg); }
21[[nodiscard]] constexpr auto ceill(long double arg) noexcept -> long double { return etl::detail::gcem::ceil(arg); }
22[[nodiscard]] constexpr auto ceil(integral auto arg) noexcept -> double { return etl::detail::gcem::ceil(double(arg)); }
23
25
26} // namespace etl
27
28#endif // TETL_CMATH_CEIL_HPP
The concept integral<T> is satisfied if and only if T is an integral type.
Definition integral.hpp:13
constexpr auto ceilf(float arg) noexcept -> float
Computes the smallest integer value not less than arg.
Definition ceil.hpp:18
constexpr auto ceil(float arg) noexcept -> float
Computes the smallest integer value not less than arg.
Definition ceil.hpp:17
constexpr auto ceill(long double arg) noexcept -> long double
Computes the smallest integer value not less than arg.
Definition ceil.hpp:21
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8