mod does not need the width of ull, so set it to be int

This commit is contained in:
2025-06-19 23:42:12 +02:00
parent 8304c0620b
commit b5b16be0ad

View File

@@ -40,7 +40,7 @@ int main(int argc, char** argv) {
if (errno != 0) error(errno, "parse error for string: '%s'\n", argv[i]);
// acquire random data (compiler will optimize MOD and DIV away since they're both base-2 constant values)
ull mod = c % (sizeof(ull) * 8); // get the remainder of the available random bits
int mod = c % (sizeof(ull) * 8); // get the remainder of the available random bits
c = c / (sizeof(ull) * 8); // compute our "word count"
// dynamically scale the array to our needs, ensuring 2^n scaling