[Mesa-dev] [PATCH] isl: remove ffs function that conflicts with system headers
Jonathan Gray
jsg at jsg.id.au
Fri Apr 22 15:23:25 UTC 2016
Remove a wrapper around __builtin_ffs that conflicts with system
headers on OpenBSD and perhaps elsewhere:
isl_priv.h:44: error: conflicting types for 'ffs'
Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
---
src/intel/isl/isl_priv.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/intel/isl/isl_priv.h b/src/intel/isl/isl_priv.h
index 7a4d75b..d46f3ef 100644
--- a/src/intel/isl/isl_priv.h
+++ b/src/intel/isl/isl_priv.h
@@ -40,11 +40,6 @@ __isl_finishme(const char *file, int line, const char *fmt, ...);
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
-static inline uint32_t
-ffs(uint32_t n) {
- return __builtin_ffs(n);
-}
-
static inline bool
isl_is_pow2(uintmax_t n)
{
--
2.8.1
More information about the mesa-dev
mailing list