SPUC  3.0
Static Public Member Functions | List of all members
SPUC::spuc_shift_class_function< FRAC_BITS_, Q_ > 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
< INT_BITS_1+Template_Max
< TOTAL_BITS_1-INT_BITS_1,
FRAC_BITS_ >::maxval >
::int_type 
shift_function (const spuc_fixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &a)
 Default shift function is truncate!!! 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
< INT_BITS_1+Template_Max
< TOTAL_BITS_1-INT_BITS_1,
FRAC_BITS_ >::maxval >
::int_type 
shift_function (const spuc_ufixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &a)
 

Detailed Description

template<int FRAC_BITS_, spuc_q_mode Q_>
class SPUC::spuc_shift_class_function< FRAC_BITS_, Q_ >

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

Member Function Documentation

template<int FRAC_BITS_, spuc_q_mode Q_>
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< INT_BITS_1 + Template_Max<TOTAL_BITS_1 - INT_BITS_1, FRAC_BITS_>::maxval>::int_type SPUC::spuc_shift_class_function< FRAC_BITS_, Q_ >::shift_function ( const spuc_fixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &  a)
inlinestatic

Default shift function is truncate!!!

template<int FRAC_BITS_, spuc_q_mode Q_>
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< INT_BITS_1 + Template_Max<TOTAL_BITS_1 - INT_BITS_1, FRAC_BITS_>::maxval>::int_type SPUC::spuc_shift_class_function< FRAC_BITS_, Q_ >::shift_function ( const spuc_ufixed< TOTAL_BITS_1, INT_BITS_1, SPUC_Q_MODE_1, SPUC_O_MODE_1 > &  a)
inlinestatic

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