package base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
  • deprecated [since 2018-10] use [popcount] functions in the individual int modules

This module exposes popcount functions (which count the number of ones in a bitstring) for the various integer types.

Functions are exposed in their respective modules.

val int_popcount : int -> int
val int32_popcount : int32 -> int
val int64_popcount : int64 -> int
val nativeint_popcount : nativeint -> int
OCaml

Innovation. Community. Security.