1
0

template.c: use malloc in sequential mode

This commit is contained in:
Intel A80486DX2-66 2024-01-27 14:57:56 +03:00
parent 6c16e2911c
commit c40acdd161
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -208,11 +208,11 @@ main(void)
do { do {
#endif #endif
// * allocate heap for sample data // * allocate heap for sample data
SAMPLE_TYPE* buffer = calloc( SAMPLE_TYPE* buffer =
#if SEQUENTIAL_MODE #if SEQUENTIAL_MODE
calc_block_size, malloc((size_t) calc_block_size *
#else #else
PRODUCT, calloc(PRODUCT,
#endif #endif
sizeof(SAMPLE_TYPE)); sizeof(SAMPLE_TYPE));