|
ETL
0.04.19
|
#include <cmath>Go to the source code of this file.
Classes | |
| class | fixed_base< T, FIXED_BITS > |
| Fixed-point template base class. More... | |
| class | fixed_base< T, FIXED_BITS >::raw |
Macros | |
| #define | ETL_FIXED_TYPE int |
| #define | ETL_FIXED_BITS 12 |
| #define | ETL_FIXED_EPSILON _EPSILON() |
| #define | ETL_ATTRIB_CONST |
| #define | ETL_ATTRIB_PURE |
| #define | ETL_ATTRIB_INLINE |
Typedefs | |
| typedef fixed_base < ETL_FIXED_TYPE, ETL_FIXED_BITS > | fixed |
Functions | |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL_END_NAMESPACE _STD_BEGIN_NAMESPACE _ETL::fixed_base< T, FIXED_BITS > | abs (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | cos (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | cosh (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | exp (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | log (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | log10 (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | pow (const _ETL::fixed_base< T, FIXED_BITS > &, int) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | pow (const _ETL::fixed_base< T, FIXED_BITS > &, const T &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | pow (const _ETL::fixed_base< T, FIXED_BITS > &, const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | sin (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | sinh (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | sqrt (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | tan (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<typename T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | tanh (const _ETL::fixed_base< T, FIXED_BITS > &) |
| template<class T , unsigned int FIXED_BITS> | |
| fixed_base< T, FIXED_BITS > | operator* (const float &lhs, const fixed_base< T, FIXED_BITS > &rhs) |
| float * fixed | |
| template<class T , unsigned int FIXED_BITS> | |
| fixed_base< T, FIXED_BITS > | operator* (const double &lhs, const fixed_base< T, FIXED_BITS > &rhs) |
| double * fixed | |
| template<class T , unsigned int FIXED_BITS> | |
| _ETL_END_NAMESPACE _STD_BEGIN_NAMESPACE _ETL::fixed_base< T, FIXED_BITS > | ceil (const _ETL::fixed_base< T, FIXED_BITS > &rhs) |
| template<class T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | floor (const _ETL::fixed_base< T, FIXED_BITS > &rhs) |
| template<class T , unsigned int FIXED_BITS> | |
| _ETL::fixed_base< T, FIXED_BITS > | round (const _ETL::fixed_base< T, FIXED_BITS > &rhs) |
| #define ETL_FIXED_TYPE int |
======================================================================== Extended Template and Library Fixed-Point Math Class Implementation $Id$
Copyright (c) 2002 Robert B. Quattlebaum Jr. Copyright (c) 2007 Chris Moore
This package 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 package 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.
=== N O T E S ===========================================================
This is an internal header file, included by other ETL headers. You should not attempt to use it directly.
| typedef fixed_base<ETL_FIXED_TYPE,ETL_FIXED_BITS> fixed |
| _ETL::fixed_base< T, FIXED_BITS > abs | ( | const _ETL::fixed_base< T, FIXED_BITS > & | rhs | ) |
Definition at line 572 of file _fixed.h.
Referenced by surface< T, AT, VP >::surface().
| _ETL::fixed_base<T,FIXED_BITS> cos | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
Referenced by surface< T, AT, VP >::cosine_sample(), and surface< T, AT, VP >::cosine_sample_cooked().
| _ETL::fixed_base<T,FIXED_BITS> cosh | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> exp | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> log | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> log10 | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> pow | ( | const _ETL::fixed_base< T, FIXED_BITS > & | , |
| int | |||
| ) |
| _ETL::fixed_base<T,FIXED_BITS> pow | ( | const _ETL::fixed_base< T, FIXED_BITS > & | , |
| const T & | |||
| ) |
| _ETL::fixed_base< T, FIXED_BITS > pow | ( | const _ETL::fixed_base< T, FIXED_BITS > & | , |
| const _ETL::fixed_base< T, FIXED_BITS > & | |||
| ) |
| _ETL::fixed_base<T,FIXED_BITS> sin | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> sinh | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> sqrt | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
Referenced by distance_func< value_type >::uncook().
| _ETL::fixed_base<T,FIXED_BITS> tan | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| _ETL::fixed_base<T,FIXED_BITS> tanh | ( | const _ETL::fixed_base< T, FIXED_BITS > & | ) |
| fixed_base<T,FIXED_BITS> operator* | ( | const float & | lhs, |
| const fixed_base< T, FIXED_BITS > & | rhs | ||
| ) |
float * fixed
Definition at line 440 of file _fixed.h.
Referenced by fixed_base< T, FIXED_BITS >::operator*().
| fixed_base<T,FIXED_BITS> operator* | ( | const double & | lhs, |
| const fixed_base< T, FIXED_BITS > & | rhs | ||
| ) |
|
inline |
Definition at line 557 of file _fixed.h.
Referenced by ceil_to_int(), and random< T, POOL_SIZE >::set_range().
| _ETL::fixed_base<T,FIXED_BITS> floor | ( | const _ETL::fixed_base< T, FIXED_BITS > & | rhs | ) |
Definition at line 562 of file _fixed.h.
Referenced by surface< T, AT, VP >::cubic_sample(), surface< T, AT, VP >::cubic_sample_cooked(), fastangle::dist(), fastangle::mod(), fastangle::operator~(), surface< T, AT, VP >::sample_rect(), surface< T, AT, VP >::sample_rect_clip(), surface< T, AT, VP >::sample_rect_clip_cooked(), surface< T, AT, VP >::sample_rect_cooked(), clock_desc_gettimeofday::seconds_to_timestamp(), and random< T, POOL_SIZE >::set_range().
1.8.1.2