大改
This commit is contained in:
12
csgo2/sdk/public/mathlib.h
Normal file
12
csgo2/sdk/public/mathlib.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "../sdk.h"
|
||||
FORCEINLINE unsigned int SmallestPowerOfTwoGreaterOrEqual(unsigned int x)
|
||||
{
|
||||
x -= 1;
|
||||
x |= x >> 1;
|
||||
x |= x >> 2;
|
||||
x |= x >> 4;
|
||||
x |= x >> 8;
|
||||
x |= x >> 16;
|
||||
return x + 1;
|
||||
}
|
||||
Reference in New Issue
Block a user