SPUC  3.0
Namespaces | Functions
real_round.h File Reference

Templated round function. More...

#include <spuc/spuc_types.h>
#include <cmath>
Include dependency graph for real_round.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_round (T in, long bits)
 Templated round function. More...
 
template<>
long SPUC::real_round (long in, long bits)
 
template<>
float SPUC::real_round (float in, long bits)
 
template<>
int SPUC::real_round (int in, long bits)
 
template<>
double SPUC::real_round (double in, long bits)
 

Detailed Description

Templated round function.