Snippets tagged bit twiddling hacks

  • Count leading zeros

    Several ways of counting leading zeros in a binary number. Update: clzDeBruijn now captures the look-up table in the closure so that the table is only evaluated once and everything is contained in the main function.

    3 people like this

    Posted: 10 years ago by Bjørn Bæverfjord