logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bitCount - counts the number of 1 bits in an integer

Declaration

genITypebitCount(genITypevalue);genITypebitCount(genUTypevalue);

Description

bitCount returns the number of bits that are set to 1 in the binary representation of value.

Name

       bitCount - counts the number of 1 bits in an integer

Parameters

value
           Specifies the value whose bits to count.

See Also

findLSB(), findMSB()

Version Support

       ┌──────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │          │        OpenGLShadingLanguageVersion                                            │
       ├──────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name     │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ bitCount │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also