Implementations for scalar without data-dependent branches