|
|
int | TasGrid::Maths::intlog2 (int i) |
| | Computes std::floor(std::log2(i)), but uses only integer operations.
|
| |
|
int | TasGrid::Maths::int2log2 (int i) |
| | Computes std::pow(2, std::floor(std::log2(i))), but uses only integer operations.
|
| |
|
int | TasGrid::Maths::int3log3 (int i) |
| | Computes std::pow(3, std::floor(std::log(i) / std::log(2))), but uses only integer operations.
|
| |
|
int | TasGrid::Maths::pow2 (int p) |
| | Computes std::pow(2, p), but uses only integer operations.
|
| |
|
int | TasGrid::Maths::pow3 (int p) |
| | Computes std::pow(3, p), but uses only integer operations.
|
| |
|
double | TasGrid::Maths::sign (double p) |
| | Returns +1 or -1 with the same sign as p.
|
| |