Tecnologia da Informática Márcio Francisco Dutra e Campos

Posts Tagged ‘byte’

Reversing Bits in C

07.31.2013 · Posted in Eng. Computação

“Interesting lessons can come from unexpected places! I was pleasantly surprised at how something as “simple” as reversing bits in a byte could lead me on an unexpectedly deep exploration: operation vs instruction count, memory access patterns and cache behavior, and low-level CPU instructions. It’s often very easy to make assumptions about the performance of ...