sc_has_single_bit&action=edit)  
[ bit_ceil  ](/w/cpp/numeric/bit_ceil "cpp/numeric/bit ceil") (C++20)  |  finds the smallest integral power of two not less than the given value   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_bit_ceil&action=edit)  
[ bit_floor  ](/w/cpp/numeric/bit_floor "cpp/numeric/bit floor") (C++20)  |  finds the largest integral power of two not greater than the given value   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_bit_floor&action=edit)  
[ bit_width  ](/w/cpp/numeric/bit_width "cpp/numeric/bit width") (C++20)  |  finds the smallest number of bits needed to represent the given value   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_bit_width&action=edit)  
[ rotl  ](/w/cpp/numeric/rotl "cpp/numeric/rotl") (C++20)  |  computes the result of bitwise left-rotation   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_rotl&action=edit)  
[ rotr  ](/w/cpp/numeric/rotr "cpp/numeric/rotr") (C++20)  |  computes the result of bitwise right-rotation   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_rotr&action=edit)  
[ countl_zero  ](/w/cpp/numeric/countl_zero "cpp/numeric/countl zero") (C++20)  |  counts the number of consecutive  ​  0  ​  bits, starting from the most significant bit   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_countl_zero&action=edit)  
[ countl_one  ](/w/cpp/numeric/countl_one "cpp/numeric/countl one") (C++20)  |  counts the number of consecutive  1  bits, starting from the most significant bit   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_countl_one&action=edit)  
[ countr_zero  ](/w/cpp/numeric/countr_zero "cpp/numeric/countr zero") (C++20)  |  counts the number of consecutive  ​  0  ​  bits, starting from the least significant bit   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_countr_zero&action=edit)  
[ countr_one  ](/w/cpp/numeric/countr_one "cpp/numeric/countr one") (C++20)  |  counts the number of consecutive  1  bits, starting from the least significant bit   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_countr_one&action=edit)  
[ popcount  ](/w/cpp/numeric/popcount "cpp/numeric/popcount") (C++20)  |  counts the number of  1  bits in an unsigned integer   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/numeric/dsc_popcount&action=edit)  
[ endian  ](/w/cpp/types/endian "cpp/types/endian") (C++20)  |  indicates the endianness of scalar types   
(enum)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/types/dsc_endian&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/numeric&action=edit&section=17
"Edit section: See also") ]  See also

[ C documentation ](/w/c/numeric "c/numeric") for  Numerics  
---  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/numeric&oldid=168202
](https://en.cppreference.com/mwiki/index.php?title=cpp/numeric&oldid=168202)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/numeric "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/numeric "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\