cedric pushed a commit to branch master.
commit a13456b04c1ffec58691aaea03ba07d7b279a565
Author: Cedric BAIL <[email protected]>
Date: Thu Apr 4 12:21:05 2013 +0900
eo: let's not duplicate our align code with a less efficient one.
---
src/lib/eo/eo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 4c852f1..61cd501 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -64,8 +64,7 @@ struct _Eo {
(_eo_classes[id - 1]) : NULL; \
})
-#define EO_ALIGN_SIZE(size) \
- ((size) + (sizeof(void *) - ((size) % sizeof(void *))))
+#define EO_ALIGN_SIZE(size) eina_mempool_alignof(size)
typedef struct _Dich_Chain1 Dich_Chain1;
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html