Signed vs Unsigned
// arr is an array of uint64_t
int sum = 0;
for (auto elem : arr) {
sum += elem / 1234;
}
// arr is an array of int64_t
int sum = 0;
for (auto elem : arr) {
sum += elem / 1234;
}
* The benchmark is run under AMD Ryzen 9.
* For the full benchmark code, please refer here.