summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2015-07-29 09:41:18 -0700
committerAnuj Phogat <anuj.phogat@gmail.com>2015-07-29 14:46:30 -0700
commit2484263fe97cebc9fa7a5c9de04c757dc6cc7713 (patch)
tree8beca0299cc6ae7b2b8589d1cef7652d259c4a0d /src/mesa/main/macros.h
parent8413822c8cfaf9110625c1a4a66ee916c2a916e3 (diff)
downloadexternal_mesa3d-2484263fe97cebc9fa7a5c9de04c757dc6cc7713.zip
external_mesa3d-2484263fe97cebc9fa7a5c9de04c757dc6cc7713.tar.gz
external_mesa3d-2484263fe97cebc9fa7a5c9de04c757dc6cc7713.tar.bz2
Delete duplicate function is_power_of_two() and use _mesa_is_pow_two()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
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 0608650..07919a6 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