Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
camel-cdr
1y ago
0 comments
Share
Given that the input is "integers uniformly sampled from [0, 2³¹−1]" couldn't you use a LUT for the 99.99% case of just 10/9/8 digit numbers instead and have a cold branch the handle the very rare smaller numbers.
undefined | Better HN
0 comments
default
newest
oldest
anonymoushn
1y ago
Yes, maybe if one is clever and lucky this could cost only a popcnt and a branch? not sure.
j
/
k
navigate · click thread line to collapse