ffs() arch optimization
|Reported by:||tqh||Owned by:||tqh|
|Has a Patch:||no||Platform:||All|
Our ffs can be optimized at least for x86. Providing a test-program based on FreeBsd's ffs. No real implementation as I don't know how you want to do arch optimizations and fallbacks.
On newer x86, it can even be done in two ops with cmov, but that would require runtime configuration which might be overkill. Other platforms tries to inline function as well.