summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-29 06:03:39 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-29 06:16:25 +0200
commit89b2897220acfacdc431f138377fbcec9f0ea812 (patch)
treeef25c5d3201d66cfcd9586482c81f442ec190844 /src/gallium/auxiliary/util/u_math.h
parent735af3959f4a4eb5940835c5a4117a020f103414 (diff)
util: remove util_is_pot in favor of util_is_power_of_two
The function was duplicated.
Diffstat (limited to 'src/gallium/auxiliary/util/u_math.h')
-rw-r--r--src/gallium/auxiliary/util/u_math.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index af510dac51..69a7681494 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -361,16 +361,6 @@ util_is_inf_or_nan(float x)
/**
- * Test whether x is a power of two.
- */
-static INLINE boolean
-util_is_pot(unsigned x)
-{
- return (x & (x - 1)) == 0;
-}
-
-
-/**
* Find first bit set in word. Least significant bit is 1.
* Return 0 if no bits set.
*/