libfxd 0.2.dev
A fixed-point library for C++.
Loading...
Searching...
No Matches
round-div.hpp File Reference
#include <csignal>
#include "fixed.hpp"
#include "concepts.hpp"
#include "detail/bias.hpp"
#include "detail/raw-div.hpp"
#include "detail/shift.hpp"

Go to the source code of this file.

Namespaces

namespace  fxd
 This is the namespace where the entire library is defined.
 
namespace  fxd::zero
 Round to zero.
 
namespace  fxd::up
 Round up.
 
namespace  fxd::down
 Round down.
 

Functions

template<fixed_point Fxd>
constexpr Fxd div (Fxd a, Fxd b) noexcept
 Divide rounding to zero.
 
template<fixed_point Fxd>
constexpr Fxd div (Fxd a, Fxd b) noexcept
 Divide rounding up.
 
template<fixed_point Fxd>
constexpr Fxd div (Fxd a, Fxd b) noexcept
 Divide rounding down.