Arduino Filters master
Filter library for Arduino
Classes | Typedefs | Functions
FixedPoint.hpp File Reference
#include <AH/STL/cmath>
#include <AH/STL/cstdint>
#include <AH/STL/limits>
#include <AH/STL/type_traits>
#include <AH/Error/Error.hpp>
#include <AH/PrintStream/PrintStream.hpp>
+ Include dependency graph for FixedPoint.hpp:

Go to the source code of this file.

Classes

struct  DoubleWidthInt< T >
 
struct  DoubleWidthInt< uint8_t >
 
struct  DoubleWidthInt< int8_t >
 
struct  DoubleWidthInt< uint16_t >
 
struct  DoubleWidthInt< int16_t >
 
struct  DoubleWidthInt< uint32_t >
 
struct  DoubleWidthInt< int32_t >
 
class  FixedPoint< T, N, T2 >
 Very basic fixed-point integer implementation. More...
 

Typedefs

template<class T >
using DoubleWidthInt_t = typename DoubleWidthInt< T >::type
 Get the integer type that has twice the number of bits as the given type. More...
 

Functions

template<class T , uint8_t N, class T2 >
T2 operator* (T lhs, FixedPoint< T, N, T2 > rhs)
 Multiply normal integer with fixed point integer. More...
 
template<class T , uint8_t N, class T2 >
T2 operator* (T2 lhs, FixedPoint< T, N, T2 > rhs)
 Multiply normal integer with fixed point integer. More...
 
template<class T , uint8_t N, class T2 >
Print & operator<< (Print &os, FixedPoint< T, N, T2 > fp)
 Printing a fixed-point integer. More...