| MathHelperLog2GreaterOrEqual Method |
Returns the smallest non-negative integer x such that 2x ≥ value.
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax [CLSCompliantAttribute(false)]
public static uint Log2GreaterOrEqual(
uint value
)
<CLSCompliantAttribute(false)>
Public Shared Function Log2GreaterOrEqual (
value As UInteger
) As UInteger
public:
[CLSCompliantAttribute(false)]
static unsigned int Log2GreaterOrEqual(
unsigned int value
)
[<CLSCompliantAttribute(false)>]
static member Log2GreaterOrEqual :
value : uint32 -> uint32
Parameters
- value
- Type: SystemUInt32
The value.
Return Value
Type:
UInt32
The smallest non-negative integer x such that 2
x ≥
value.
Exception: If
value is 0, 0 is returned.
See Also