[pulseaudio-commits] r2090 - /trunk/src/pulsecore/gccmacro.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Dec 29 10:04:32 PST 2007
Author: lennart
Date: Sat Dec 29 19:04:31 2007
New Revision: 2090
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2090&root=pulseaudio&view=rev
Log:
convert argument to boolean value before passing it on to __builtin_expect in PA_LIKELY
Modified:
trunk/src/pulsecore/gccmacro.h
Modified: trunk/src/pulsecore/gccmacro.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/gccmacro.h?rev=2090&root=pulseaudio&r1=2089&r2=2090&view=diff
==============================================================================
--- trunk/src/pulsecore/gccmacro.h (original)
+++ trunk/src/pulsecore/gccmacro.h Sat Dec 29 19:04:31 2007
@@ -79,7 +79,7 @@
#ifndef PA_LIKELY
#ifdef __GNUC__
-#define PA_LIKELY(x) (__builtin_expect((x),1))
+#define PA_LIKELY(x) (__builtin_expect(!!(x),1))
#define PA_UNLIKELY(x) (__builtin_expect((x),0))
#else
#define PA_LIKELY(x) (x)
More information about the pulseaudio-commits
mailing list