Blogs / Personal blogs

Hummus and Magnets

h14s.p5r.org

I’m Christian Plesner Hansen. I’m a software engineer working out of Århus, Denmark. This is my technical blog.

Popular posts
3
Total points
529
HN comments
176
Rank
#4,821 personal

Visit h14s.p5r.org → RSS feedOn Hacker News Nov 2014 – Mar 2023

Software Engineering 3Math & Algorithms 2Programming Languages 1

2

Bitwise Division

Integer division is expensive. Much more expensive than multiplication. Much, much more expensive than addition. If you’re trying to make some integer operations really fast it’s bad news if you need to do division.