Closes #10 : column groups stored in directories

This commit is contained in:
Celine Mercier
2015-06-23 18:35:34 +02:00
parent 61b6c3ce83
commit 152b34b5f4
10 changed files with 745 additions and 223 deletions

View File

@ -8,7 +8,8 @@
#include <obitypes.h>
size_t obi_sizeof(OBIType_t type) {
size_t obi_sizeof(OBIType_t type)
{
size_t size=0;
switch (type) {
@ -34,15 +35,16 @@ size_t obi_sizeof(OBIType_t type) {
}
size_t obi_array_sizeof(OBIType_t type, size_t nbelements) {
size_t obi_array_sizeof(OBIType_t type, size_t nbelements)
{
size_t size;
size_t rsize;
size_t psize;
size = obi_sizeof(type) * nbelements;
psize= getpagesize();
rsize= size % psize;
psize = getpagesize();
rsize = size % psize;
// Round at a size multiple of pagesize
if (rsize)