int
int copied to clipboard
Tested on gcc 9.2.0 and clang9 Using literals on large numbers causes both compilers to exceed constexpr limit. Clang is able to compile when limit is set to about 4millions...
I've uncovered that only gcc 7.1 compile the library. (maybe previous versions of the compiler carried out that code too) But how about clang and VS I've tried: clang 4.0...
The best solution to test the big numbers is [primality test](https://en.wikipedia.org/wiki/Primality_test) (in Russian some links) - [Тест простоты](https://ru.wikipedia.org/wiki/Тест_простоты) - [Решето Эратосфена](http://e-maxx.ru/algo/eratosthenes_sieve) - [тест BPSW на простоту чисел](http://e-maxx.ru/algo/bpsw) It will be...
I've found some errors. And I wrote a new test function ``` static inline void testBigNumbers() { uint128_t a1 = std::numeric_limits::max() * 1; assert2(a1, std::numeric_limits::max()); // Ok a1 = std::numeric_limits::max()...
I've found out that the embedded сomparison functions are declared as a noexcept but all external are implemented without the noexcept keyword. for instance (only parts of code) > template...