unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-6.1.5)
Page:
Section:
Apropos / Subsearch:
optional field

POPCOUNT(3)                Library Functions Manual                POPCOUNT(3)

NAME
     popcount, popcountl, popcountll, popcount32, popcount64 -- count number
     of bits set in a bit string

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <&lt;strings.h>&gt;

     unsigned int
     popcount(unsigned int value);

     unsigned int
     popcountl(unsigned long value);

     unsigned int
     popcountll(unsigned long long value);

     #include <&lt;stdint.h>&gt;

     unsigned int
     popcount32(uint32_t value);

     unsigned int
     popcount64(uint64_t value);

DESCRIPTION
     The popcount functions returns the number of bits set in value.

SEE ALSO
     ffs(3)

HISTORY
     The popcount(), popcountl(), popcountll(), popcount32(), and popcount64()
     functions appeared in NetBSD 6.0.

NetBSD 6.1.5                    August 22, 2011                   NetBSD 6.1.5