Quantcast
Viewing all articles
Browse latest Browse all 5

Pointless optimization

So I was looking at the macro used to calculate 16-bit parity in pure C without branching: It uses GCC’s handy compound statement syntax, but otherwise it’s plain old C. Let’s look at the 64-bit ASM this compiles to at -Os: Whew! That’s fifteen instructions (optimized, mind you!) to find out something that x86 processors [...]

Viewing all articles
Browse latest Browse all 5

Trending Articles