M | |
mainarg_thread | |
maincontext_startparam_INIT, maincontext_startparam_t | |
maincontext_STATICSIZE | |
maincontext_STATICTESTSIZE | |
maintask_thread | |
makepowerof2_int | |
malloc_mm | |
MAXCHILD, trie_nodedata_t | |
maxpbuffer_gconfig | |
MAXSIZE, header_t | |
maxsyserrnum_errorcontext | |
memberasobject_typeadaptmember | |
memberasobject_typeadaptnodeoffset | |
memblock_FREE, memblock_t | |
memblock_INIT, memblock_t | |
MEMCOPY | |
MEMSET0 | |
memstream_FREE, memstream_t | |
memstream_INIT, memstream_t | |
mfree_mm | |
mm_FREE, mm_t | |
mm_INIT, mm_t | |
mm_it_DECLARE | |
mm_it_FREE, mm_it | |
mm_it_INIT, mm_it | |
mm_maincontext | |
mmfile_FREE, mmfile_t | |
mmimpl_FREE, mm_impl_t | |
mod_bigint | |
module_DIRECTORY | |
module_FREE, module_t | |
mresize_mm | |
mutex_INIT_DEFAULT, mutex_t |
Implements thread_t.mainarg_thread.
#define mainarg_thread( threadobj ) ( __extension__ ({ volatile const thread_t * _thr ; _thr = (threadobj) ; _thr->main_arg ; }))
Static initializer.
#define maincontext_startparam_INIT( context_type, argc, argv, main_thread ) { context_type, argc, argv, main_thread }
Defines size for s_maincontext_staticmem.
#define maincontext_STATICSIZE processcontext_STATICSIZE
Defines additonal size for s_maincontext_staticmem.
#define maincontext_STATICTESTSIZE ( maincontext_STATICSIZE )
Implements thread_t.maintask_thread.
#define maintask_thread( threadobj ) ( __extension__ ({ volatile const thread_t * _thr ; _thr = (threadobj) ; _thr->main_task ; }))
Implements mm_t.malloc_mm.
#define malloc_mm( mm, size, /*out*/memblock ) ((mm).iimpl->malloc((mm).object, (size), (memblock)))
The maximum nr of child pointer which could be stored in a trie_nodedata_t of size header_t.MAXSIZE.
#define MAXCHILD ( (MAXSIZE-offsetof(trie_nodedata_t, keylen)-sizeof(((trie_nodedata_t*)0)->uservalue)) / (sizeof(void*)+sizeof(uint8_t)) )
Implements gconfig_t.maxpbuffer_gconfig.
#define maxpbuffer_gconfig( gconf, display, maxwidth, maxheight, maxpixels ) maxpbuffer_eglconfig(gl_gconfig(gconf), gl_display(display), maxwidth, maxheight, maxpixels)
#define MAXSIZE ( 64*sizeof(void*) )
Implements errorcontext_t.maxsyserrnum_errorcontext.
#define maxsyserrnum_errorcontext( ) (132)
Imeplements typeadapt_member_t.memberasobject_typeadaptmember.
#define memberasobject_typeadaptmember( nodeadp, node ) memberasobject_typeadaptnodeoffset((nodeadp)->nodeoff, node)
Implements typeadapt_nodeoffset_t.memberasobject_typeadaptnodeoffset.
#define memberasobject_typeadaptnodeoffset( nodeoff, node ) ( __extension__ ({ uint32_t _off = (nodeoff); (struct typeadapt_object_t*) ( (uintptr_t)(node) - _off ); }))
Static initializer.
#define memblock_FREE { 0, 0 }
Static initializer.
#define memblock_INIT( size, addr ) { (addr), (size) }
Copies memory from source to destination.
#define MEMCOPY( destination, source ) do { static_assert(sizeof(*(destination)) == sizeof(*(source)),"same size") ; memcpy((destination), (source), sizeof(*(destination))) ; } while(0)
Sets memory of variable to 0.
#define MEMSET0( pointer ) memset((pointer), 0, sizeof(*(pointer)))
Static initializer.
#define memstream_FREE { 0, 0 }
Initializes memstream_t.
#define memstream_INIT( start, end ) { start, end }
Implements mm_t.mfree_mm.
#define mfree_mm( mm, memblock ) ((mm).iimpl->mfree((mm).object, (memblock)))
Static initializer.
#define mm_FREE iobj_FREE
Static initializer.
#define mm_INIT( object, iimpl ) iobj_INIT(object, iimpl)
Implements mm_it.mm_it_DECLARE.
#define mm_it_DECLARE( declared_it, memorymanager_t ) typedef struct declared_it declared_it ; struct declared_it { int (* malloc) (memorymanager_t * mman, size_t size, /*out*/struct memblock_t * memblock) ; int (* mresize) (memorymanager_t * mman, size_t newsize, struct memblock_t * memblock) ; int (* mfree) (memorymanager_t * mman, struct memblock_t * memblock) ; size_t (* sizeallocated) (memorymanager_t * mman) ; } ;
Static initializer.
#define mm_it_FREE { 0, 0, 0, 0 }
Static initializer.
#define mm_it_INIT( malloc_f, mresize_f, mfree_f, sizeallocated_f ) { (malloc_f), (mresize_f), (mfree_f), (sizeallocated_f) }
Inline implementation of maincontext_t.mm_maincontext.
#define mm_maincontext( ) (tcontext_maincontext()->mm)
Static initializer for mmfile_t.
#define mmfile_FREE { 0, 0 }
Static initializer.
#define mmimpl_FREE { 0 }
Implements bigint_t.mod_bigint.
#define mod_bigint( result, lbig, rbig ) (divmod_bigint(0, result, lbig, rbig))
The name of the directory the loadable module binary blobs are stored.
#define module_DIRECTORY "bin/mod/"
Static initializer.
#define module_FREE { 0, 0 }
Implements mm_t.mresize_mm.
#define mresize_mm( mm, newsize, memblock ) ((mm).iimpl->mresize((mm).object, (newsize), (memblock)))
Static initializer for mutex_t without error checking.
#define mutex_INIT_DEFAULT sys_mutex_INIT_DEFAULT