MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / rpaligned_realloc

Function rpaligned_realloc

vm/ByteCodeTranslator/src/rpmalloc.c:1661–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1659}
1660
1661void*
1662rpaligned_realloc(void* ptr, size_t alignment, size_t size, size_t oldsize,
1663 unsigned int flags) {
1664#if ENABLE_VALIDATE_ARGS
1665 if (size + alignment < size) {
1666 errno = EINVAL;
1667 return 0;
1668 }
1669#endif
1670 //TODO: If alignment > 16, we need to copy to new aligned position
1671 (void)sizeof(alignment);
1672 return _memory_reallocate(ptr, size, oldsize, flags);
1673}
1674
1675void*
1676rpaligned_alloc(size_t alignment, size_t size) {

Callers

nothing calls this directly

Calls 1

_memory_reallocateFunction · 0.85

Tested by

no test coverage detected