From 8d1da6a8ca48469a10614c33e0eadc7e7f1d4f13 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Nov 2009 09:50:15 -0800 Subject: Move NextPowerOf2 to alMain.h --- Alc/alcEcho.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'Alc/alcEcho.c') 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; -- cgit v1.2.3