Function average2_autovec

Source
fn average2_autovec(a: u8, b: u8) -> u8
Expand description

Get average of 2 bytes, allows some predictors to be autovectorized by keeping computation within lanes of u8.

LLVM is capable of optimizing average2 into this but not in all cases.