[#BloombergLP-bdlb-BitUtil-roundUpToBinaryPower-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::roundUpToBinaryPower
:relfileprefix: ../../../
:mrdocs:

`roundUpToBinaryPower` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;bitutil&period;h&gt;`

Return the least power of 2 not less than `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-08.adoc[roundUpToBinaryPower](unsigned int value);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-08.adoc[_» more&period;&period;&period;_]#

Same as the `unsigned int` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned long
xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-0e.adoc[roundUpToBinaryPower](unsigned long value);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-0e.adoc[_» more&period;&period;&period;_]#

Same as the `unsigned int` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned long long
xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-07.adoc[roundUpToBinaryPower](unsigned long long value);
----

[.small]#xref:BloombergLP/bdlb/BitUtil/roundUpToBinaryPower-07.adoc[_» more&period;&period;&period;_]#

== Return Value

least power of 2 not less than `value`, or 0 on failure

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value to round up to a power of 2
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
