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

◆ Log2() [1/2]

static short IBinaryNumber< short >. System.Int16.Log2 ( short value)
inlinestatic

Definition at line 328 of file Int16.cs.

329 {
330 if (value < 0)
331 {
332 ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
333 }
334 return (short)BitOperations.Log2((ushort)value);
335 }
static int Log2(uint value)

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