SPUC  3.0
Namespaces | Functions
saturate.h File Reference

Templated saturate function. More...

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


 fixed point types: spuc_fixed,spuc_ufixed,spuc_int,spuc_uint


template<class T >
SPUC::saturate (T in, long bits)
 Templated saturate function template function that uses a class to allow template specialization. More...

Detailed Description

Templated saturate function.