src/hbcore/core/hbsplaytreeallocator_p.cpp
changeset 28 b7da29130b0e
parent 21 4633027730f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    34 #define TO_NODE_OFFSET(x) ((int)((char *)(x)-(char *)(chunk->data())))
    34 #define TO_NODE_OFFSET(x) ((int)((char *)(x)-(char *)(chunk->data())))
    35 #define TO_OFFSET(x) ((int)((char *)(x)-(char *)(chunk->data())))
    35 #define TO_OFFSET(x) ((int)((char *)(x)-(char *)(chunk->data())))
    36 
    36 
    37 // this identifier is used to check, if the splay tree is already
    37 // this identifier is used to check, if the splay tree is already
    38 // initialized in given shared chunk
    38 // initialized in given shared chunk
    39 const quintptr INITIALIZED_ALLOCATOR_IDENTIFIER = 0x53504C59; //'SPLY'
    39 const quint32 INITIALIZED_ALLOCATOR_IDENTIFIER = 0x53504C59; //'SPLY'
    40 
    40 
    41 /**
    41 /**
    42  * HbSplayTreeAllocator::initialize
    42  * HbSplayTreeAllocator::initialize
    43  *
    43  *
    44  * Initializes splay tree and internal variables.
    44  * Initializes splay tree and internal variables.