tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
fmod.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4#ifndef TETL_CMATH_FMOD_HPP
5#define TETL_CMATH_FMOD_HPP
6
7#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
11/// \ingroup cmath
12/// @{
13
14/// Computes the floating-point remainder of the division operation x/y.
15/// \details https://en.cppreference.com/w/cpp/numeric/math/fmod
16[[nodiscard]] constexpr auto fmod(float x, float y) noexcept -> float
17{
18 return etl::detail::gcem::fmod(x, y);
19}
20[[nodiscard]] constexpr auto fmodf(float x, float y) noexcept -> float
21{
22 return etl::detail::gcem::fmod(x, y);
23}
24[[nodiscard]] constexpr auto fmod(double x, double y) noexcept -> double
25{
26 return etl::detail::gcem::fmod(x, y);
27}
28[[nodiscard]] constexpr auto fmod(long double x, long double y) noexcept -> long double
29{
30 return etl::detail::gcem::fmod(x, y);
31}
32[[nodiscard]] constexpr auto fmodl(long double x, long double y) noexcept -> long double
33{
34 return etl::detail::gcem::fmod(x, y);
35}
36
37/// @}
38
39} // namespace etl
40
41#endif // TETL_CMATH_FMOD_HPP
constexpr auto fmod(long double x, long double y) noexcept -> long double
Definition fmod.hpp:28
constexpr auto fmodl(long double x, long double y) noexcept -> long double
Definition fmod.hpp:32
constexpr auto fmod(double x, double y) noexcept -> double
Definition fmod.hpp:24
constexpr auto fmodf(float x, float y) noexcept -> float
Definition fmod.hpp:20
constexpr auto fmod(float x, float y) noexcept -> float
Definition fmod.hpp:16
Definition adjacent_find.hpp:9