flâneur — a map of the web's best reading

Branchless Equivalents of Simple Functions | Harder, Better, Faster, Stronger

hbfs.wordpress.com · 2,518 words · saved by 1 readers

Modern processors are equipped with sophisticated branch prediction algorithms (the Pentium family, for example, can predict a vast array of patterns of jumps taken/not taken) but if they, for some…

Branchless Equivalents of Simple Functions | Harder, Better, Faster, Stronger Harder, Better, Faster, Stronger Explorations in better, faster, stronger code. Home About the author About this blog Branchless Equivalents of Simple Functions Modern processors are equipped with sophisticated branch prediction algorithms (the Pentium family, for example, can predict a vast array of patterns of jumps taken/not taken) but if they, for some reason, mispredict the next jump, the performance can take quite a hit. Branching to an unexpected location means flushing the pipelines, prefetching new instructi

Explore this link on the map →

saved by

related reading