Class Int32Util
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Fundamentals.dll
public static class Int32Util
- Inheritance
-
Int32Util
- Inherited Members
Methods
- DivLog2RoundDown(int, int)
Divides x by 2^log2N, and rounds down.
- DivLog2RoundUp(int, int)
Divides x by 2^log2N, and rounds up.
- IncrementRoundUp(int, int)
Rounds x to a multiple of n which is greater than or equal to x.
- Log2(int)
Returns log2(x) for positive values of x.
- Pow2RoundDown(int)
Returns the largest power of 2 which is less than or equal to x, or 0 if x is 0, for positive values.
- Pow2RoundUp(int)
Returns the smallest power of 2 which is greater than or equal to x, for positive values less than or equal to 2^30.
- RoundDownLog2N(int, int)
Rounds x to a multiple of 2^log2N which is greater than or equal to x.
- RoundUpLog2N(int, int)
Rounds x to a multiple of 2^log2N which is greater than or equal to x.