SPUC  3.0
Namespaces | Functions
real_saturate.h File Reference

Templated saturation functions. More...

#include <spuc/spuc_types.h>
#include <cmath>
Include dependency graph for real_saturate.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 SPUC
 fixed point types: spuc_fixed,spuc_ufixed,spuc_int,spuc_uint
 

Functions

template<class T >
SPUC::real_saturate (T in, long bits)
 Templated saturation functions. More...
 
template<>
long SPUC::real_saturate (long in, long bits)
 Templated saturation functions. More...
 
template<>
int SPUC::real_saturate (int in, long bits)
 
template<>
double SPUC::real_saturate (double in, long bits)
 
template<>
float SPUC::real_saturate (float in, long bits)
 

Detailed Description

Templated saturation functions.