Commit Graph

2 Commits

Author SHA1 Message Date
Szabolcs Nagy 06fbefd100 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.
2017-08-29 21:47:10 -04:00
Bobby Bingham c0ede9e404 add powerpc64 port 2016-05-08 22:57:40 -04:00