Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Ocaml_intrinsics_kernel.Int end
count_leading_zeros n
returns the number of most-significant zero bits before the most significant set bit in n
. If n
is 0, the result is the number of bits in n
, that is 31 or 63, depending on the target.
count_leading_zeros2 n
computes the same result as count_leading_zeros n
.
The functions only differ in optimizations that the compiler may be able to perform around the call. In particular, the implementation of count_leading_zeros n
may operate directly on tagged n.
count_set_bits2 n
computes the same result as count_set_bits n
.
The functions only differs in optimizations that the compiler may be able to perform around the call. In particular, the implementation of count_set_bits n
may operate directly on tagged n.