summaryrefslogtreecommitdiff
path: root/legacy/eina
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-09-04 08:00:27 +0000
committerTom Hacohen <tom@stosb.com>2012-09-04 08:00:27 +0000
commit89413ab06e4978a96417ecf19de5f5bd0636efd9 (patch)
tree2c20cba9fa66b8e91132370a822987942d3e0f15 /legacy/eina
parent52447357b63b6deb5f5664edecdb0656cbffe0c4 (diff)
Eina magic: add EINA_LIKELY.
This should improve performance as we use magic checks everywhere and it lets the compiler do better optimisations. SVN revision: 76113
Diffstat (limited to 'legacy/eina')
-rw-r--r--legacy/eina/src/include/eina_magic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/eina/src/include/eina_magic.h b/legacy/eina/src/include/eina_magic.h
index 1da6c9b3eb..5e8d37663b 100644
--- a/legacy/eina/src/include/eina_magic.h
+++ b/legacy/eina/src/include/eina_magic.h
@@ -250,7 +250,7 @@ EAPI extern Eina_Error EINA_ERROR_MAGIC_FAILED;
250 * If the magic feature of Eina is disabled, #EINA_MAGIC_CHECK is just 250 * If the magic feature of Eina is disabled, #EINA_MAGIC_CHECK is just
251 * the value @c 1. 251 * the value @c 1.
252 */ 252 */
253#define EINA_MAGIC_CHECK(d, m) ((d) && ((d)->__magic == (m))) 253#define EINA_MAGIC_CHECK(d, m) (EINA_LIKELY((d) && ((d)->__magic == (m))))
254 254
255/** 255/**
256 * @def EINA_MAGIC_FAIL(d, m) 256 * @def EINA_MAGIC_FAIL(d, m)