1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Renames: NumberTheory -> Numeric.

This commit is contained in:
Thomas Harte
2020-01-19 23:14:35 -05:00
parent 8f94da9daf
commit 1b4b6b0aee
18 changed files with 39 additions and 53 deletions
+3 -3
View File
@@ -9,7 +9,7 @@
#ifndef Storage_hpp
#define Storage_hpp
#include "../NumberTheory/Factors.hpp"
#include "../Numeric/Factors.hpp"
#include <cmath>
#include <cstdint>
#include <limits>
@@ -39,7 +39,7 @@ struct Time {
and @c clock_rate.
*/
void simplify() {
unsigned int common_divisor = NumberTheory::greatest_common_divisor(length, clock_rate);
unsigned int common_divisor = Numeric::greatest_common_divisor(length, clock_rate);
length /= common_divisor;
clock_rate /= common_divisor;
}
@@ -229,7 +229,7 @@ struct Time {
}
if(long_length > std::numeric_limits<unsigned int>::max() || long_clock_rate > std::numeric_limits<unsigned int>::max()) {
uint64_t common_divisor = NumberTheory::greatest_common_divisor(long_length, long_clock_rate);
uint64_t common_divisor = Numeric::greatest_common_divisor(long_length, long_clock_rate);
long_length /= common_divisor;
long_clock_rate /= common_divisor;