tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
labs.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTDLIB_LABS_HPP
4#define TETL_CSTDLIB_LABS_HPP
5
6#include <etl/_math/abs.hpp>
7
8namespace etl {
9
14[[nodiscard]] constexpr auto labs(long n) noexcept -> long { return detail::abs_impl<long>(n); }
15
16} // namespace etl
17
18#endif // TETL_CSTDLIB_LABS_HPP
Definition adjacent_find.hpp:8
constexpr auto labs(long n) noexcept -> long
Computes the absolute value of an integer number. The behavior is undefined if the result cannot be r...
Definition labs.hpp:14