libfxd 0.2.dev
A fixed-point library for C++.
Loading...
Searching...
No Matches
fxd::except::zero Namespace Reference

Round to zero, and throw on overflow. More...

Functions

template<fixed_point Fxd>
constexpr Fxd div (Fxd a, Fxd b)
 Divide rounding to zero, throw on overflow.
 
template<fixed_point Fxd>
constexpr Fxd mul (Fxd a, Fxd b)
 Multiply rounding to zero, throw on overflow.
 

Detailed Description

Round to zero, and throw on overflow.

Function Documentation

◆ div()

constexpr Fxd div ( Fxd  a,
Fxd  b 
)
constexpr

Divide rounding to zero, throw on overflow.

Definition at line 330 of file except.hpp.

◆ mul()

constexpr Fxd mul ( Fxd  a,
Fxd  b 
)
constexpr

Multiply rounding to zero, throw on overflow.

Definition at line 341 of file except.hpp.