Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_chunk_allocator.cpp File Reference
#include "kis_debug.h"
#include "kis_chunk_allocator.h"

Go to the source code of this file.

Macros

#define GAP_SIZE(low, high)   ((high) - (low) > 0 ? (high) - (low) - 1 : 0)
 
#define HAS_NEXT(list, iter)   ((iter)!=(list).end())
 
#define HAS_PREVIOUS(list, iter)   ((iter)!=(list).begin())
 
#define PEEK_NEXT(iter)   (*(iter))
 
#define PEEK_PREVIOUS(iter)   (*((iter)-1))
 
#define WRAP_PREVIOUS_CHUNK_DATA(iter)   (KisChunk((iter)-1))
 

Macro Definition Documentation

◆ GAP_SIZE

#define GAP_SIZE ( low,
high )   ((high) - (low) > 0 ? (high) - (low) - 1 : 0)

Definition at line 11 of file kis_chunk_allocator.cpp.

◆ HAS_NEXT

#define HAS_NEXT ( list,
iter )   ((iter)!=(list).end())

Definition at line 13 of file kis_chunk_allocator.cpp.

◆ HAS_PREVIOUS

#define HAS_PREVIOUS ( list,
iter )   ((iter)!=(list).begin())

Definition at line 14 of file kis_chunk_allocator.cpp.

◆ PEEK_NEXT

#define PEEK_NEXT ( iter)    (*(iter))

Definition at line 16 of file kis_chunk_allocator.cpp.

◆ PEEK_PREVIOUS

#define PEEK_PREVIOUS ( iter)    (*((iter)-1))

Definition at line 17 of file kis_chunk_allocator.cpp.

◆ WRAP_PREVIOUS_CHUNK_DATA

#define WRAP_PREVIOUS_CHUNK_DATA ( iter)    (KisChunk((iter)-1))

Definition at line 18 of file kis_chunk_allocator.cpp.