Skip to main content

CHEAP_SATURATION

Constant CHEAP_SATURATION 

Source
const CHEAP_SATURATION: bool = false;
Expand description

Whether a saturating increment on u32 lanes is cheap: one uqadd on aarch64, and pminud from SSE4.1 and a subtract on x86. Baseline x86-64 has no unsigned 32-bit min and emulates it with compares, so there the saturating increment of DivisorU32::Down costs more than the add and halve of DivisorU32::AddIndicator