llvm-for-llvmta/test/tools/llvm-cov/Inputs/multithreaded_report/bytes.cc

16 lines
352 B
C++
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
#include "abs.h"
#include "bytes.h"
#include "pow.h"
bool loopBytes() {
uint64_t totalInt = 0;
double totalFloat = 0;
for (uint8_t i = 1; i != 0; ++i) {
double a = logarithm(i);
a = abs(a);
totalInt += abs(pow(i, static_cast<uint8_t>(a)));
totalFloat += pow(static_cast<decltype(a)>(i), a);
}
return totalInt > totalFloat;
}