mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Updated with latest Tommy
This commit is contained in:
parent
45d278483c
commit
3c7b90e93f
14 changed files with 163 additions and 120 deletions
|
|
@ -30,7 +30,7 @@
|
|||
/******************************************************************************/
|
||||
/* array */
|
||||
|
||||
void tommy_array_init(tommy_array* array)
|
||||
TOMMY_API void tommy_array_init(tommy_array* array)
|
||||
{
|
||||
tommy_uint_t i;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ void tommy_array_init(tommy_array* array)
|
|||
array->count = 0;
|
||||
}
|
||||
|
||||
void tommy_array_done(tommy_array* array)
|
||||
TOMMY_API void tommy_array_done(tommy_array* array)
|
||||
{
|
||||
tommy_uint_t i;
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ void tommy_array_done(tommy_array* array)
|
|||
}
|
||||
}
|
||||
|
||||
void tommy_array_grow(tommy_array* array, tommy_size_t count)
|
||||
TOMMY_API void tommy_array_grow(tommy_array* array, tommy_size_t count)
|
||||
{
|
||||
if (array->count >= count)
|
||||
return;
|
||||
|
|
@ -76,7 +76,7 @@ void tommy_array_grow(tommy_array* array, tommy_size_t count)
|
|||
}
|
||||
}
|
||||
|
||||
tommy_size_t tommy_array_memory_usage(tommy_array* array)
|
||||
TOMMY_API tommy_size_t tommy_array_memory_usage(tommy_array* array)
|
||||
{
|
||||
return array->bucket_max * (tommy_size_t)sizeof(void*);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue