algorithm: Add a wrapper around __builtin_ctz.

This is similar to the one around __builtin_clz and ensures defined behavior
even if the input value is 0.

Change-Id: Ic1f1403bfe3b2cbf94eff1fc345a4fe0f59ac81a
1 file changed