Commit Graph

11 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri c502186b3d make bastards happy
SVN revision: 67083
2012-01-11 14:06:07 +00:00
Gustavo Sverzut Barbieri 7a4e904566 add eina_value.
eina value is a generic value storage, it's quite efficient to space
(16 bytes) and speed (inlines for basic types).

It's basically a structure describing how to manage memory
(Eina_Value_Type), with default implementation for char, short, int,
long, int64_t (and unsigned variants), float, double, stringshare and
string.

If a type 'value_size' is smaller than 8 bytes, it's stored
inline. Otherwise a value is allocated and managed.

Most of the methods are inline, with special handling for char, short,
int... Then no extra calls are made, allowing the compiler to optimize
them.

For array of a single type it is recommend to use Eina_Value_Array, as
it will efficiently store and access members (just a char if subtype
is EINA_VALUE_TYPE_CHAR, etc).

It can copy itself, compare itself. Including arrays.

It would be nice to have something that converts between EET and this.



SVN revision: 67035
2012-01-11 02:20:26 +00:00
Gustavo Sverzut Barbieri 45b07ed02d add eina_inarray.
It is an inline array, that is, the members are actually in the
allocated buffer, as opposed to a pointer to its data.

It can be used to manage array of integers, floats or other structures
without fragmenting memory.

The lookups should be fast as memory is linear, then CPU prefetch can
kick in and bring data to cache before it's used.



SVN revision: 67003
2012-01-09 23:24:18 +00:00
Cedric BAIL edbee63134 eina: detect fault during Eina_File mmap memory access and improve Xattr functions.
SVN revision: 66799
2012-01-03 14:59:07 +00:00
Cedric BAIL d92a903ffe eina: add Eina_Semaphore API.
Patch by Vincent Torri.


SVN revision: 66693
2011-12-30 13:38:53 +00:00
Mike Blumenkrantz afdbaf8651 +eina_mempool_calloc
SVN revision: 65821
2011-12-02 15:27:35 +00:00
Boris Faure 15f0f3e044 eina: update news/changelog
SVN revision: 65268
2011-11-15 14:24:53 +00:00
Carsten Haitzler e171abd5d6 1 - too many in underline
SVN revision: 65122
2011-11-13 06:11:43 +00:00
Carsten Haitzler c305ba5215 NEWS file like ecore - per vtorri's suggestion
SVN revision: 65120
2011-11-13 06:08:35 +00:00
Carsten Haitzler 5bdaef94d4 eina NEWS file has summary from changelog. damn we did a lot.
SVN revision: 65057
2011-11-11 09:07:20 +00:00
Cedric BAIL a92e3d6c83 Adding turran work to unify EFL data types and functions.
SVN revision: 35248
2008-07-30 12:46:55 +00:00