Y
Hacker News
new
|
ask
|
show
|
jobs
by
alpaca128
1200 days ago
The final non-generalized version uses two additions and two bitwise shifts, no multiplication:
(v + (v << 3) + 9) >> 6