diff options
author | Chris Robinson <[email protected]> | 2009-11-19 09:50:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-11-19 09:50:15 -0800 |
commit | 8d1da6a8ca48469a10614c33e0eadc7e7f1d4f13 (patch) | |
tree | bc5856b2a348eb0ed3799f5c5876c7c734f910be /Alc/alcEcho.c | |
parent | ff8e09495d846f303479e75d11ef8b2e2957265f (diff) |
Move NextPowerOf2 to alMain.h
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 359dfbba..66710cc4 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -53,24 +53,6 @@ typedef struct ALechoState { ALfloat history[2]; } ALechoState; -// Find the next power of 2. Actually, this will return the input value if -// it is already a power of 2. -static ALuint NextPowerOf2(ALuint value) -{ - ALuint powerOf2 = 1; - - if(value) - { - value--; - while(value) - { - value >>= 1; - powerOf2 <<= 1; - } - } - return powerOf2; -} - ALvoid EchoDestroy(ALeffectState *effect) { ALechoState *state = (ALechoState*)effect; |