From da4f5c6f96b04094bf37e5c7ac393a7bfbfbb681 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Nov 2010 19:52:17 -0800 Subject: Uninline some functions Also add -Winline to the compiler command line to watch for future inline problems --- OpenAL32/Include/alMain.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 41189010..1bfcc0f1 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -324,26 +324,7 @@ void InitUIntMap(UIntMap *map); void ResetUIntMap(UIntMap *map); ALenum InsertUIntMapEntry(UIntMap *map, ALuint key, ALvoid *value); void RemoveUIntMapKey(UIntMap *map, ALuint key); - -static __inline ALvoid *LookupUIntMapKey(UIntMap *map, ALuint key) -{ - if(map->size > 0) - { - ALsizei low = 0; - ALsizei high = map->size - 1; - while(low < high) - { - ALsizei mid = low + (high-low)/2; - if(map->array[mid].key < key) - low = mid + 1; - else - high = mid; - } - if(map->array[low].key == key) - return map->array[low].value; - } - return NULL; -} +ALvoid *LookupUIntMapKey(UIntMap *map, ALuint key); struct ALCdevice_struct -- cgit v1.2.3