summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-20 18:57:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-20 18:57:40 +0900
commit942e33082e4561d221cb9073f82576e601a4771c (patch)
treeb3b1c08e86ea54c0840c7f9111e411c0e48f74c1
parent29f9e5fd918df81ec6f149c56885e9c63743b6f1 (diff)
downloadtdewebdev-942e33082e4561d221cb9073f82576e601a4771c.tar.gz
tdewebdev-942e33082e4561d221cb9073f82576e601a4771c.zip
Remove KDE_ISLIKELY and KDE_ISUNLIKELY defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--lib/compatibility/tdemdi/qextmdi/kdemacros.h.in33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/compatibility/tdemdi/qextmdi/kdemacros.h.in b/lib/compatibility/tdemdi/qextmdi/kdemacros.h.in
index 13ebee42..fe5605be 100644
--- a/lib/compatibility/tdemdi/qextmdi/kdemacros.h.in
+++ b/lib/compatibility/tdemdi/qextmdi/kdemacros.h.in
@@ -131,39 +131,6 @@
#endif
/**
- * The KDE_ISLIKELY macro tags a boolean expression as likely to evaluate to
- * 'true'. When used in an if ( ) statement, it gives a hint to the compiler
- * that the following codeblock is likely to get executed. Providing this
- * information helps the compiler to optimize the code for better performance.
- * Using the macro has an insignificant code size or runtime memory footprint impact.
- * The code semantics is not affected.
- *
- * \note
- * Providing wrong information ( like marking a condition that almost never
- * passes as 'likely' ) will cause a significant runtime slowdown. Therefore only
- * use it for cases where you can be sure about the odds of the expression to pass
- * in all cases ( independent from e.g. user configuration ).
- *
- * \par
- * The KDE_ISUNLIKELY macro tags an expression as unlikely evaluating to 'true'.
- *
- * \note
- * Do NOT use ( !KDE_ISLIKELY(foo) ) as an replacement for KDE_ISUNLIKELY !
- *
- * \code
- * if ( KDE_ISUNLIKELY( testsomething() ) )
- * abort(); // assume its unlikely that the application aborts
- * \endcode
- */
-#if __GNUC__ - 0 >= 3
-# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
-# define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0)
-#else
-# define KDE_ISLIKELY( x ) ( x )
-# define KDE_ISUNLIKELY( x ) ( x )
-#endif
-
-/**
* This macro, and it's friends going up to 10 reserve a fixed number of virtual
* functions in a class. Because adding virtual functions to a class changes the
* size of the vtable, adding virtual functions to a class breaks binary