IT++ Logo
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables

fix_base.h File Reference

Definitions of a base class for fixed-point data types. More...

#include <itpp/base/ittypes.h>
#include <itpp/stat/misc_stat.h>

Go to the source code of this file.

Classes

class  itpp::Fix_Base
 Base class for fixed-point data types. More...

Namespaces

namespace  itpp
 

\


Typedefs

typedef int64_t itpp::fixrep
 Representation for fixed-point data types.

Enumerations

enum  itpp::e_mode { itpp::TC, itpp::US }
 

Sign encoding modes (aligned with SystemC)

More...
enum  itpp::o_mode {
  itpp::SAT, itpp::SAT_ZERO, itpp::SAT_SYM, itpp::WRAP,
  itpp::WRAP_SM
}
 

Overflow modes (aligned with SystemC)

More...
enum  itpp::q_mode {
  itpp::RND, itpp::RND_ZERO, itpp::RND_MIN_INF, itpp::RND_INF,
  itpp::RND_CONV, itpp::RND_CONV_ODD, itpp::TRN, itpp::TRN_ZERO
}
 

Quantization modes (aligned with SystemC)

More...
enum  itpp::output_mode { itpp::OUTPUT_FIX, itpp::OUTPUT_FIX_SHIFT, itpp::OUTPUT_FLOAT, itpp::OUTPUT_FLOAT_SHIFT }
 

Output modes.

More...

Functions

std::ostream & itpp::operator<< (std::ostream &os, const output_mode &o)
 Set output mode.

Variables

const int itpp::MAX_WORDLEN = 64
 Max word length.
const uint64_t itpp::UINT64_POW2 [64]
 Table for fast multiplication or division by 2^n.
const double itpp::DOUBLE_POW2 [128]
 Table for fast multiplication by 2^(n-64)

Detailed Description

Definitions of a base class for fixed-point data types.

Author:
Johan Bergman

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file fix_base.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SourceForge Logo

Generated on Wed Feb 9 2011 13:47:25 for IT++ by Doxygen 1.7.3