[pulseaudio-commits] r2039 - /trunk/src/pulsecore/macro.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Nov 9 06:19:40 PST 2007


Author: lennart
Date: Fri Nov  9 15:19:40 2007
New Revision: 2039

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2039&root=pulseaudio&view=rev
Log:
remove PA_CLAMP_LIKELY macro because it doesn't really make sense.

Modified:
    trunk/src/pulsecore/macro.h

Modified: trunk/src/pulsecore/macro.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/macro.h?rev=2039&root=pulseaudio&r1=2038&r2=2039&view=diff
==============================================================================
--- trunk/src/pulsecore/macro.h (original)
+++ trunk/src/pulsecore/macro.h Fri Nov  9 15:19:40 2007
@@ -77,8 +77,10 @@
 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
 #endif
 
-#define PA_CLAMP_LIKELY(x, low, high) (PA_LIKELY((x) > (high)) ? (high) : (PA_LIKELY((x)<(low)) ? (low) : (x)))
 #define PA_CLAMP_UNLIKELY(x, low, high) (PA_UNLIKELY((x) > (high)) ? (high) : (PA_UNLIKELY((x) < (low)) ? (low) : (x)))
+/* We don't define a PA_CLAMP_LIKELY here, because it doesn't really
+ * make sense: we cannot know if it is more likely that the values is
+ * lower or greater than the boundaries.*/
 
 /* This type is not intended to be used in exported APIs! Use classic "int" there! */
 #ifdef HAVE_STD_BOOL




More information about the pulseaudio-commits mailing list