commit | 703b66a5317e63695f0f24c4a8945ca93b54c4ad | [log] [tgz] |
---|---|---|
author | Gabe Black <gabeblack@google.com> | Tue Oct 04 15:56:50 2016 -0700 |
committer | Gabe Black <gabeblack@google.com> | Tue Oct 04 16:17:06 2016 -0700 |
tree | fb8033440f004a37b047a40be4847a4c66cf9db7 | |
parent | a460853b9c77e4732387b00e76d6b8d4007bd722 [diff] |
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