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'
v2: include strings.h to ensure prototype is found
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
#pragma once
#include <assert.h>
+#include <strings.h>
#include "brw_device_info.h"
#include "util/macros.h"
#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)
{