[#BloombergLP-bdlb-BitUtil-roundUp-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitUtil.adoc[BitUtil]::roundUp :relfileprefix: ../../../ :mrdocs: `roundUp` overloads == Synopses Declared in `<bdlb_bitutil.h>` Return the least multiple of the specified `boundary` that is greater than or equal to the specified `value`, and 0 if `0 == value` or the conversion was not successful. The behavior is undefined unless `1 == numBitsSet(boundary)`. Note that the conversion will succeed if and only if `0 == value % boundary` or `(1 << sizeInBits(value)) > (value / boundary + 1) * boundary`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned int xref:BloombergLP/bdlb/BitUtil/roundUp-00.adoc[roundUp]( unsigned int value, unsigned int boundary); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-00.adoc[_» more..._]# Same as the `unsigned int` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned long xref:BloombergLP/bdlb/BitUtil/roundUp-01.adoc[roundUp]( unsigned long value, unsigned long boundary); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-01.adoc[_» more..._]# Same as the `unsigned int` overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned long long xref:BloombergLP/bdlb/BitUtil/roundUp-03.adoc[roundUp]( unsigned long long value, unsigned long long boundary); ---- [.small]#xref:BloombergLP/bdlb/BitUtil/roundUp-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#