Expand data size utilities
This commit is contained in:
@@ -147,7 +147,7 @@ TestFuncResult test_i32_array_copy_capped(void) {
|
||||
TestFuncResult test_i32_array_alloc_capacity(void) {
|
||||
b8 result;
|
||||
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MB(4));
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
|
||||
u64 capacity = 32;
|
||||
I32Array *array = wapp_array_alloc_capacity(i32, I32Array, &allocator, capacity);
|
||||
|
||||
@@ -161,7 +161,7 @@ TestFuncResult test_i32_array_alloc_capacity(void) {
|
||||
TestFuncResult test_i32_array_append_alloc(void) {
|
||||
b8 result;
|
||||
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MB(4));
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
|
||||
I32Array array1 = wapp_array(i32, I32Array, 1, 2, 3, 4, 5, 6, 7, 8);
|
||||
I32Array array2 = wapp_array(i32, I32Array, 1, 2);
|
||||
|
||||
@@ -189,7 +189,7 @@ TestFuncResult test_i32_array_append_alloc(void) {
|
||||
TestFuncResult test_i32_array_extend_alloc(void) {
|
||||
b8 result;
|
||||
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MB(4));
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
|
||||
I32Array array1 = wapp_array(i32, I32Array, 1, 2, 3, 4, 5, 6, 7, 8);
|
||||
I32Array array2 = wapp_array(i32, I32Array, 1, 2);
|
||||
I32Array array3 = wapp_array(i32, I32Array, 1, 2, 3, 4);
|
||||
@@ -208,7 +208,7 @@ TestFuncResult test_i32_array_extend_alloc(void) {
|
||||
TestFuncResult test_i32_array_copy_alloc(void) {
|
||||
b8 result;
|
||||
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MB(4));
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
|
||||
I32Array src = wapp_array(i32, I32Array, 1, 2, 3, 4, 5);
|
||||
I32Array dst1 = wapp_array(i32, I32Array, 1, 2, 3, 4, 5, 6);
|
||||
I32Array dst2 = wapp_array(i32, I32Array, 1, 2);
|
||||
|
||||
Reference in New Issue
Block a user