Home GnuPG

Add functions to count trailing zero bits in a word.
9d2a22c94ae9Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add functions to count trailing zero bits in a word.

* cipher/bithelp.h (_gcry_ctz, _gcry_ctz64): New.
* configure.ac (HAVE_BUILTIN_CTZ): Add new test.

Note that these functions return the number of bits in the word when
passing 0.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 15 2015, 10:04 AM
Parents
rC27a91a93d101: Re-indent types.h for easier reading.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC9d2a22c94ae9: Add functions to count trailing zero bits in a word. (authored by Werner Koch <wk@gnupg.org>).Jan 15 2015, 10:37 AM