powerest.hpp File Reference

#include "config.hpp"
#include "exception.hpp"
#include "factory.hpp"
#include "cmp.hpp"
#include "std_import.hpp"
#include "powerest.cpp"

Go to the source code of this file.

Namespaces

namespace  Arageli

Defines

#define ARAGELI_INCLUDE_CPP_WITH_EXPORT_TEMPLATE_POWEREST

Functions

template<typename T, typename I, typename T_factory>
Arageli::power (T a, I n, const T_factory &tfctr)
 Exponentiates a in to positive integer power n via squaring and adding.
template<typename T, typename I>
Arageli::power (const T &a, const I &n)
 Exponentiates a in to positive integer power n via squaring and adding.
template<typename T, typename I, typename T_factory>
Arageli::pow2 (I n, const T_factory &tfctr)
 Exponentiates 2 in to positive integer power n via left shift operator.
template<typename T, typename I>
Arageli::pow2 (I n)
 Exponentiates 2 in to positive integer power n via left shift operator.
template<typename T>
Arageli::log2 (T x)
 Returns the base-2 logarithm of x. The default version.
template<typename T1, typename T2, typename Q, typename R>
void Arageli::divide (const T1 &a, const T2 &b, Q &q, R &r)
 Performs division produced quotient and remainder.
template<typename T1, typename T2, typename Q, typename R>
void Arageli::prdivide (const T1 &a, const T2 &b, Q &q, R &r)
 Performs division produced quotient and POSITIVE remainder (pr).
template<typename T1, typename T2>
T1 Arageli::prquot (const T1 &a, const T2 &b)
 Returns quotient of pr-division of a by b.
template<typename T1, typename T2>
T2 Arageli::prrem (const T1 &a, const T2 &b)
 Returns remainder of pr-division of a by b.
template<typename T>
Arageli::square (const T &a)
 Returns square of a.
int Arageli::pow (int x, int y)


Define Documentation

#define ARAGELI_INCLUDE_CPP_WITH_EXPORT_TEMPLATE_POWEREST

Definition at line 182 of file powerest.hpp.


Generated on Thu Aug 31 17:38:18 2006 for Arageli by  doxygen 1.4.7