| 
    Simple Application Framework
    1
    
   
   | 
  
  
  
 
Calculus related functions and classes. More...
Functions | |
| template<class T > | |
| T | BinaryLogarithm (T val) | 
Binary logarithm of a positive integer val.   | |
| template<class T > | |
| bool | IsPowerOf2 (T val) | 
Returns true if val is a positive power of 2.   | |
| template<class T > | |
| T | NearestPowerOf2 (T val) | 
Power of 2 nearest to the integer val.   | |
| template<class T > | |
| T | Pow (T x, T y) | 
Calculate  .   | |
| template<class T > | |
| T | RoundDownToPowerOf2 (T val) | 
Get the nearest power of 2 less than or equal to integer val.   | |
| template<class T > | |
| T | RoundUpToPowerOf2 (T val) | 
Get the nearest power of 2 greater than or equal to integer val.   | |
| template<class T > | |
| T | Sqr (T x) | 
Calculate  .   | |
| template<class T > | |
| T | Sqrt (T x) | 
Calculate  .   | |
Calculus related functions and classes.
| T SAF_DLL_EXPORT Saf::Math::Calculus::BinaryLogarithm | ( | T | val | ) | 
Binary logarithm of a positive integer val. 
| bool Saf::Math::Calculus::IsPowerOf2 | ( | T | val | ) |  [inline] | 
        
Returns true if val is a positive power of 2. 
| T SAF_DLL_EXPORT Saf::Math::Calculus::NearestPowerOf2 | ( | T | val | ) | 
Power of 2 nearest to the integer val. 
| T Saf::Math::Calculus::Pow | ( | T | x, | 
| T | y | ||
| ) |  [inline] | 
        
Calculate 
. 
| T Saf::Math::Calculus::RoundDownToPowerOf2 | ( | T | val | ) |  [inline] | 
        
Get the nearest power of 2 less than or equal to integer val. 
| T SAF_DLL_EXPORT Saf::Math::Calculus::RoundUpToPowerOf2 | ( | T | val | ) | 
Get the nearest power of 2 greater than or equal to integer val. 
| T Saf::Math::Calculus::Sqr | ( | T | x | ) |  [inline] | 
        
Calculate 
. 
| T Saf::Math::Calculus::Sqrt | ( | T | x | ) |  [inline] | 
        
Calculate 
. 
Defined for floating point types only.
 1.8.0