5,337
edits
(Created page with "The idea of branchless programming is to avoid <code>if</code> and <code>for</code> statements. Typically, these statements require the CPU to perform branch prediction. If...") |
|||
Line 39: | Line 39: | ||
"identity": identity | "identity": identity | ||
} | } | ||
# At runtime, you can do: | |||
x = my_cache[operation](x) | x = my_cache[operation](x) | ||
</pre> | </pre> |