1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
12 OCB implementation, internal function, by Tom St Denis
20 Returns the number of leading zero bits [from lsb up]
21 @param x The 32-bit value to observe
22 @return The number of bits [from the lsb up] that are zero
24 int ocb_ntz(unsigned long x)
29 while ((x & 1) == 0) {
38 /* ref: $Format:%D$ */
39 /* git commit: $Format:%H$ */
40 /* commit time: $Format:%ai$ */