commit | 06fbefd10046a0fae7e588b7c6d25fb51811b931 | [log] [tgz] |
---|---|---|
author | Szabolcs Nagy <nsz@port70.net> | Wed Apr 19 00:20:54 2017 +0200 |
committer | Rich Felker <dalias@aerifal.cx> | Tue Aug 29 21:47:10 2017 -0400 |
tree | 032c4ece67f6217ceb354ebff4c9889f2f0133eb | |
parent | 3356177979bea717451362e746252ed38de77514 [diff] |
add a_clz_64 helper function counts leading zero bits of a 64bit int, undefined on zero input. (has nothing to do with atomics, added to atomic.h so target specific helper functions are together.) there is a logarithmic generic implementation and another in terms of a 32bit a_clz_32 on targets where that's available.