Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Log2() [1/2]

static int IBinaryNumber< int >. System.Int32.Log2 ( int value)
inlinestatic

Definition at line 318 of file Int32.cs.

319 {
320 if (value < 0)
321 {
322 ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
323 }
324 return BitOperations.Log2((uint)value);
325 }
static int Log2(uint value)

References System.Numerics.BitOperations.Log2(), System.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(), and System.value.