FLINT_BIT_COUNT
Synopsis
#include <flint/longlong.h>flint_bitcnt_t FLINT_BIT_COUNT(ulong x)sourceReturns the number of bits of , that is, for , and 0 for . The result is unsigned, so expressions such as FLINT_BIT_COUNT(x) - 1 wrap around for .
Guides#
Cite this page
The FLINT team, “FLINT_BIT_COUNT (longlong.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/longlong/FLINT_BIT_COUNT.html (generated 2026-11-02).
@misc{flint-doc-longlong-FLINT-BIT-COUNT,
author = {{The FLINT team}},
title = {{FLINT\_BIT\_COUNT (longlong.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/longlong/FLINT_BIT_COUNT.html},
note = {Generated 2026-11-02}
}