33 #include <itpp/itexports.h> 47 template <
int w, e_mode e = TC, o_mode o = WRAP, q_mode q = TRN >
53 :
Fix(x, s, w, e, o, q, ptr) {}
56 :
Fix(0.0, 0, w, e, o, q, ptr) {}
59 :
Fix(x, w, e, o, q, ptr) {}
361 #endif // #ifndef FIXED_H Templated fixed-point data type.
fixrep apply_o_mode(fixrep x) const
Handle overflows using overflow mode omode and make call to statistics object (if any) ...
fixrep re
Data representation.
Fixed< 1, US, WRAP > ufixed1
Typedefs for unsigned Fixed (ufixed1, ufixed2, ..., ufixed64)
Fixed(const Fix &x, Stat *ptr=0)
Constructor.
virtual ~Fixed()
Destructor.
Fixed(Stat *ptr)
Constructor.
Fixed< 1, US, SAT > sufixed1
Typedefs for saturated unsigned Fixed (sufixed1, sufixed2, ..., sufixed64)
Fixed & operator=(int x)
Assignment from int.
int shift
Accumulated bitshift (positive means left-shifted, negative means right-shifted)
Definitions of a fixed-point data type Fix.
Fixed & operator=(const Fix &x)
Assignment from Fix.
A class for sampling a signal and calculating statistics.
Fixed< 1, TC, WRAP > fixed1
Typedefs for Fixed (fixed1, fixed2, ..., fixed64)
Fixed(double x=0.0, int s=0, Stat *ptr=0)
Default constructor.
Fixed< 1, TC, SAT > sfixed1
Typedefs for saturated Fixed (sfixed1, sfixed2, ..., sfixed64)