IT++ Logo Newcom Logo

fix_base.h File Reference

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

#include <itpp/base/stat.h>

Go to the source code of this file.

Namespaces

namespace  itpp

Classes

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

Typedefs

typedef long long itpp::int64
 Typedef for signed 64-bit integer.
typedef unsigned long long itpp::uint64
 Typedef for unsigned 64-bit integer.
typedef int64 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 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
Date
2006-07-12 11:31:45 +0200 (śro, 12 lip 2006)
Revision
523

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

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

Copyright (C) 1995-2006 (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.

SourceForge Logo

Generated on Thu Apr 19 14:19:57 2007 for IT++ by Doxygen 1.4.6