@@ -31,6 +31,7 @@
#define BIT_ULL(nr) (1ULL << (nr))
#define BITS_PER_CHAR 8
#define BITS_PER_LONG (sizeof(long)*BITS_PER_CHAR)
+#define BIT_GET(val, nr) (((val) >> (nr)) & 1)
static inline unsigned long __bit__(unsigned long nr)
{
@@ -28,6 +28,7 @@
#include "drmtest.h"
#include "intel_chipset.h"
+#include "igt_bitops.h"
#include "igt_core.h"
#include "igt_fb.h"
#include "ioctl_wrappers.h"
@@ -96,8 +97,6 @@ const char *igt_draw_get_method_name(enum igt_draw_method method)
}
}
-#define BIT_GET(num, bit) ((num >> bit) & 1)
-
static int swizzle_addr(int addr, int swizzle)
{
int bit6;