Как часть этого я пытаюсь получить грубое представление о сравнении производительности между _bitint _bitint (256) и повысить многократный _Bitint (256) :
Код: Выделить всё
#include
#include
using int256_t = signed _BitInt(256);
int main()
{
for(int i = 0; i < 200; ++i)
{
// Using __rdtsc() for something non-deterministic
const int256_t a = __rdtsc() * __rdtsc() * __rdtsc() * __rdtsc() * __rdtsc() * __rdtsc();
const int256_t b = __rdtsc() * __rdtsc() * __rdtsc();
const uint64_t start = __rdtsc();
const int256_t c = a / b;
const uint64_t finish = __rdtsc();
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/76517096/performance-of-clangs-bitint256-vs-boost-multiprecision-int256-t[/url]