3#ifndef TETL_CSTDLIB_DIV_HPP
4#define TETL_CSTDLIB_DIV_HPP
37[[nodiscard]]
constexpr auto div(
int x,
int y)
noexcept ->
div_t
48[[nodiscard]]
constexpr auto div(
long x,
long y)
noexcept ->
ldiv_t
59[[nodiscard]]
constexpr auto div(
long long x,
long long y)
noexcept ->
lldiv_t
70[[nodiscard]]
constexpr auto ldiv(
long x,
long y)
noexcept ->
ldiv_t
81[[nodiscard]]
constexpr auto lldiv(
long long x,
long long y)
noexcept ->
lldiv_t
Definition adjacent_find.hpp:8
constexpr auto div(int x, int y) noexcept -> div_t
Computes both the quotient and the remainder of the division of the numerator x by the denominator y....
Definition div.hpp:37
constexpr auto lldiv(long long x, long long y) noexcept -> lldiv_t
Computes both the quotient and the remainder of the division of the numerator x by the denominator y....
Definition div.hpp:81
TETL_BUILTIN_INTMAX intmax_t
Maximum-width signed integer type.
Definition intmax_t.hpp:11
constexpr auto imaxdiv(intmax_t x, intmax_t y) noexcept -> imaxdiv_t
Computes both the quotient and the remainder of the division of the numerator x by the denominator y....
Definition div.hpp:92
constexpr auto ldiv(long x, long y) noexcept -> ldiv_t
Computes both the quotient and the remainder of the division of the numerator x by the denominator y....
Definition div.hpp:70
Return type for div.
Definition div.hpp:11
int rem
Definition div.hpp:13
int quot
Definition div.hpp:12
Return type for imaxdiv.
Definition div.hpp:29
intmax_t rem
Definition div.hpp:31
intmax_t quot
Definition div.hpp:30
Return type for ldiv.
Definition div.hpp:17
long rem
Definition div.hpp:19
long quot
Definition div.hpp:18
Return type for lldiv.
Definition div.hpp:23
long long quot
Definition div.hpp:24
long long rem
Definition div.hpp:25