| 1659 | } |
| 1660 | |
| 1661 | void* |
| 1662 | rpaligned_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 | |
| 1675 | void* |
| 1676 | rpaligned_alloc(size_t alignment, size_t size) { |
nothing calls this directly
no test coverage detected