summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2015-07-29 09:41:18 -0700
committerAnuj Phogat <[email protected]>2015-07-29 14:46:30 -0700
commit2484263fe97cebc9fa7a5c9de04c757dc6cc7713 (patch)
tree8beca0299cc6ae7b2b8589d1cef7652d259c4a0d /src/mesa/main/macros.h
parent8413822c8cfaf9110625c1a4a66ee916c2a916e3 (diff)
Delete duplicate function is_power_of_two() and use _mesa_is_pow_two()
Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 0608650aeb4..07919a6e1e4 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -679,17 +679,6 @@ minify(unsigned value, unsigned levels)
}
/**
- * Return true if the given value is a power of two.
- *
- * Note that this considers 0 a power of two.
- */
-static inline bool
-is_power_of_two(unsigned value)
-{
- return (value & (value - 1)) == 0;
-}
-
-/**
* Align a value up to an alignment value
*
* If \c value is not already aligned to the requested alignment value, it