Enlightenment CVS committal
Author : cedric
Project : e17
Module : proto/eina
Dir : e17/proto/eina/src/include
Modified Files:
eina_inline_array.x
Added Files:
eina_inline_list.x
Log Message:
After benchmarking, providing inline does impact performance of list and array
user.
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/include/eina_inline_array.x,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- eina_inline_array.x 6 Aug 2008 18:15:19 -0000 1.4
+++ eina_inline_array.x 8 Aug 2008 14:25:37 -0000 1.5
@@ -26,7 +26,7 @@
#endif
static inline Eina_Bool
-_eina_array_grow(Eina_Array *array)
+eina_array_grow(Eina_Array *array)
{
void **tmp;
unsigned int total;
@@ -42,16 +42,16 @@
}
static inline void
-_eina_array_append(Eina_Array *array, void *data)
+eina_array_append(Eina_Array *array, void *data)
{
if (UNLIKELY((array->count + array->step) > array->total))
- if (!_eina_array_grow(array)) return ;
+ if (!eina_array_grow(array)) return ;
array->data[array->count++] = data;
}
static inline void *
-_eina_array_get(Eina_Array *array, unsigned int index)
+eina_array_get(Eina_Array *array, unsigned int index)
{
return array->data[index];
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs