From 2484263fe97cebc9fa7a5c9de04c757dc6cc7713 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Wed, 29 Jul 2015 09:41:18 -0700 Subject: Delete duplicate function is_power_of_two() and use _mesa_is_pow_two() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anuj Phogat Reviewed-by: Iago Toral Quiroga Reviewed-by: Tapani Pälli --- src/mesa/main/macros.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/mesa/main/macros.h') 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 @@ -678,17 +678,6 @@ minify(unsigned value, unsigned levels) return MAX2(1, value >> 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 * -- cgit v1.2.3