logoalt Hacker News

pcwalton • today at 7:07 AM • 0 replies • view on HN

You can shift an integer 1 bit to the left by adding it to itself. This should be faster than multiplying by 2 on ancient CPUs.