Lines Matching +full:- +full:q
4 * SPDX-License-Identifier: Apache-2.0
20 * are returned low-address to high, and that freed blocks are merged
26 void *p, *q, *r, *s; in check_heap_align() local
31 q = sys_heap_aligned_alloc(h, align, size); in check_heap_align()
32 zassert_true(q != NULL, "first aligned allocation failed"); in check_heap_align()
33 zassert_true((((uintptr_t)q) & (align - 1)) == 0, "block not aligned"); in check_heap_align()
37 zassert_true((((uintptr_t)r) & (align - 1)) == 0, "block not aligned"); in check_heap_align()
42 s = sys_heap_alloc(h, (heap_end - (uint8_t *)r) - size - 8); in check_heap_align()
47 sys_heap_free(h, q); in check_heap_align()
53 p = sys_heap_alloc(h, heap_end - heap_start); in check_heap_align()
55 q = sys_heap_alloc(h, 1); in check_heap_align()
56 zassert_true(q == NULL, "heap not full"); in check_heap_align()
63 void *p, *q; in ZTEST() local
71 /* Heap starts where that first chunk was, and ends one 8-byte in ZTEST()
75 heap_end = heapmem + HEAP_SZ - 8; in ZTEST()
93 q = sys_heap_aligned_alloc(&heap, 16, 17); in ZTEST()
95 memset(q, 0, 17); in ZTEST()
98 sys_heap_free(&heap, q); in ZTEST()