You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix overflow in type cast for GUPS benchmark (#58)
* Fix overflow in type cast for GUPS benchmark
Changed size_t n = (size_t)(1 << logn) to size_t n = ((size_t)1) << logn
to prevent integer overflow when logn >= 31. The original code would
perform the left shift on an int (1) before casting to size_t, causing
overflow. Now the cast happens first, allowing proper handling of large
values like n = 2^31.
Fixes#57
0 commit comments