From: Kenneth Graunke Date: Fri, 27 Sep 2013 22:32:20 +0000 (-0700) Subject: i965: Delete our copy of likely/unlikely macros. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dda3ebec91ab9dfae8e9b9314d243cd86921ae0;p=mesa.git i965: Delete our copy of likely/unlikely macros. brw_context.h includes imports.h which includes compiler.h which already defines these. Signed-off-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i965/intel_context.h b/src/mesa/drivers/dri/i965/intel_context.h index 8b1aa3e5e0c..58a6e861aa1 100644 --- a/src/mesa/drivers/dri/i965/intel_context.h +++ b/src/mesa/drivers/dri/i965/intel_context.h @@ -60,16 +60,6 @@ struct intel_region; #define INTEL_WRITE_FULL 0x2 #define INTEL_READ 0x4 -#ifndef likely -#ifdef __GNUC__ -#define likely(expr) (__builtin_expect(expr, 1)) -#define unlikely(expr) (__builtin_expect(expr, 0)) -#else -#define likely(expr) (expr) -#define unlikely(expr) (expr) -#endif -#endif - struct intel_sync_object { struct gl_sync_object Base;