tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
div.hpp File Reference

Go to the source code of this file.

Classes

struct  div_t
 Return type for div. More...
 
struct  imaxdiv_t
 Return type for imaxdiv. More...
 
struct  ldiv_t
 Return type for ldiv. More...
 
struct  lldiv_t
 Return type for lldiv. More...
 

Namespaces

namespace  etl
 

Functions

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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.
 
constexpr auto div (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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.
 
constexpr auto div (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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.
 
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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.
 
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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.
 
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. The quotient is the result of the expression x/y. The remainder is the result of the expression xy.