trailingZeroes()
Purpose
Find the number of trailing zeroes in a binary number
Description
Find the number of trailing zeroes in a 64 bit binary number
Syntax
result = trailingZeroes( value )
Arguments
value The number to find the number of trailing zeroes in
result The number of trailing zeroes in value
Example
for i = 0 to 16 loop
j = pow( 2, i )
printAt( 0, i, int(j), " ", trailingZeroes( j ) )
update()
repeat
sleep( 3 )
Associated Commands
bitCount(), bitGet(), bitSet(), bitFieldExtract(), bitFieldInsert(), leadingZeroes()