tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remainder.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_REMAINDER_HPP
4#define TETL_CMATH_REMAINDER_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
7
8namespace etl {
9
13[[nodiscard]] constexpr auto remainder(float x, float y) noexcept -> float { return etl::detail::gcem::fmod(x, y); }
14
18[[nodiscard]] constexpr auto remainderf(float x, float y) noexcept -> float { return etl::detail::gcem::fmod(x, y); }
19
23[[nodiscard]] constexpr auto remainder(double x, double y) noexcept -> double { return etl::detail::gcem::fmod(x, y); }
24
28[[nodiscard]] constexpr auto remainder(long double x, long double y) noexcept -> long double
29{
30 return etl::detail::gcem::fmod(x, y);
31}
32
36[[nodiscard]] constexpr auto remainderl(long double x, long double y) noexcept -> long double
37{
38 return etl::detail::gcem::fmod(x, y);
39}
40
41} // namespace etl
42
43#endif // TETL_CMATH_REMAINDER_HPP
constexpr auto remainderf(float x, float y) noexcept -> float
Computes the remainder of the floating point division operation x/y.
Definition remainder.hpp:18
constexpr auto remainderl(long double x, long double y) noexcept -> long double
Computes the remainder of the floating point division operation x/y.
Definition remainder.hpp:36
constexpr auto remainder(float x, float y) noexcept -> float
Computes the remainder of the floating point division operation x/y.
Definition remainder.hpp:13
Definition adjacent_find.hpp:8