MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxAdjustChunkSize

Function fxAdjustChunkSize

xs/sources/xsMemory.c:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156txSize fxAdjustChunkSize(txMachine* the, txSize size)
157{
158 txSize adjust = sizeof(txChunk);
159 txSize modulo = size & (sizeof(size_t) - 1);
160 if (modulo)
161 adjust += sizeof(size_t) - modulo;
162 return fxAddChunkSizes(the, size, adjust);
163}
164
165void fxAllocate(txMachine* the, txCreation* theCreation)
166{

Callers 3

fxNewChunkFunction · 0.85
fxNewGrowableChunkFunction · 0.85
fxRenewChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected