SPUC  3.0
Static Public Member Functions | List of all members
SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ > Class Template Reference

#include <spuc_fixed_roundsat.h>

Static Public Member Functions

template<int TOTAL_BITS_1, int INT_BITS_1, spuc_q_mode SPUC_Q_MODE_1, spuc_o_mode SPUC_O_MODE_1>
static int_size_needed
< TOTAL_BITS_ >::int_type 
saturate_sfixed (const spuc_fixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &a)
 Default saturate function is wrap! More...
 
template<int TOTAL_BITS_1, int INT_BITS_1, spuc_q_mode SPUC_Q_MODE_1, spuc_o_mode SPUC_O_MODE_1>
static int_size_needed
< TOTAL_BITS_ >::int_type 
saturate_sfixed (const spuc_ufixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &a)
 
static int_size_needed
< TOTAL_BITS_ >::int_type 
saturate (const max_int_type &a)
 
static int_size_needed
< TOTAL_BITS_ >::int_type 
usaturate (const max_int_type &a)
 

Detailed Description

template<int TOTAL_BITS_, spuc_o_mode SPUC_O_MODE_>
class SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ >

A template class to wrap "saturate" functions that can be specialized for fixed-point types

Member Function Documentation

template<int TOTAL_BITS_, spuc_o_mode SPUC_O_MODE_>
static int_size_needed<TOTAL_BITS_>::int_type SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ >::saturate ( const max_int_type a)
inlinestatic
template<int TOTAL_BITS_, spuc_o_mode SPUC_O_MODE_>
template<int TOTAL_BITS_1, int INT_BITS_1, spuc_q_mode SPUC_Q_MODE_1, spuc_o_mode SPUC_O_MODE_1>
static int_size_needed<TOTAL_BITS_>::int_type SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ >::saturate_sfixed ( const spuc_fixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &  a)
inlinestatic

Default saturate function is wrap!

template<int TOTAL_BITS_, spuc_o_mode SPUC_O_MODE_>
template<int TOTAL_BITS_1, int INT_BITS_1, spuc_q_mode SPUC_Q_MODE_1, spuc_o_mode SPUC_O_MODE_1>
static int_size_needed<TOTAL_BITS_>::int_type SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ >::saturate_sfixed ( const spuc_ufixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &  a)
inlinestatic
template<int TOTAL_BITS_, spuc_o_mode SPUC_O_MODE_>
static int_size_needed<TOTAL_BITS_>::int_type SPUC::spuc_saturate_class_function< TOTAL_BITS_, SPUC_O_MODE_ >::usaturate ( const max_int_type a)
inlinestatic

The documentation for this class was generated from the following file: