From a13456b04c1ffec58691aaea03ba07d7b279a565 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 4 Apr 2013 12:21:05 +0900 Subject: [PATCH] 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 4c852f1591..61cd501090 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;