File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/library/standard/BitOps/c-tests/performance/64 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ int main(int argc, char** argv) {
26
26
27
27
printf ("%s" , "popcount: " );
28
28
start_time = chpl_now_timevalue ();
29
- for (uint64_t i = start ; i < (uint32_t )start + NUM_ITER ; i ++ ) {
29
+ for (uint64_t i = start ; i < (uint64_t )start + NUM_ITER ; i ++ ) {
30
30
accumulator += chpl_bitops_popcount_64 (i );
31
31
}
32
32
end_time = chpl_now_timevalue ();
@@ -38,7 +38,7 @@ int main(int argc, char** argv) {
38
38
accumulator = 0 ;
39
39
printf ("%s" , "clz: " );
40
40
start_time = chpl_now_timevalue ();
41
- for (uint64_t i = start ; i < (uint32_t )start + NUM_ITER ; i ++ ) {
41
+ for (uint64_t i = start ; i < (uint64_t )start + NUM_ITER ; i ++ ) {
42
42
accumulator += chpl_bitops_clz_64 (i );
43
43
}
44
44
end_time = chpl_now_timevalue ();
@@ -50,7 +50,7 @@ int main(int argc, char** argv) {
50
50
accumulator = 0 ;
51
51
printf ("%s" , "ctz: " );
52
52
start_time = chpl_now_timevalue ();
53
- for (uint64_t i = start ; i < (uint32_t )start + NUM_ITER ; i ++ ) {
53
+ for (uint64_t i = start ; i < (uint64_t )start + NUM_ITER ; i ++ ) {
54
54
accumulator += chpl_bitops_ctz_64 (i );
55
55
}
56
56
end_time = chpl_now_timevalue ();
You can’t perform that action at this time.
0 commit comments