svn commit: r247832 - head/sys/dev/drm2

Konstantin Belousov kib at FreeBSD.org
Tue Mar 5 09:07:02 UTC 2013


Author: kib
Date: Tue Mar  5 09:07:01 2013
New Revision: 247832
URL: http://svnweb.freebsd.org/changeset/base/247832

Log:
  Import the likely() compat macro.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 month

Modified:
  head/sys/dev/drm2/drmP.h

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h	Tue Mar  5 08:09:53 2013	(r247831)
+++ head/sys/dev/drm2/drmP.h	Tue Mar  5 09:07:01 2013	(r247832)
@@ -228,6 +228,7 @@ typedef void			irqreturn_t;
 #define IRQ_NONE		/* nothing */
 
 #define unlikely(x)            __builtin_expect(!!(x), 0)
+#define likely(x)              __builtin_expect((x), 0)
 #define container_of(ptr, type, member) ({			\
 	__typeof( ((type *)0)->member ) *__mptr = (ptr);	\
 	(type *)( (char *)__mptr - offsetof(type,member) );})


More information about the svn-src-all mailing list