Y
Hacker News
new
|
ask
|
show
|
jobs
by
layer8
250 days ago
In most languages that support differently sized integer types and/or unsigned integer types, you wouldn’t have to check, but can just apply the appropriate modulo or bit operation on all values.