5
__w64crt_aligned_offset_malloc (size_t sz, size_t align, size_t off)
9
if ((align & (align - 1)) != 0 || off >= sz)
11
__w64crt_set_errno (EINVAL);
15
if (align < sizeof(void *))
16
align = sizeof(void *);
18
if ((tmp = __w64crt_malloc (sz + align + sizeof(void *))) == NULL)
21
ret = ALIGN_PTR (tmp, align, off);
22
*((void **) SAVED_PTR (ret)) = tmp;