template.c: use malloc
in sequential mode
This commit is contained in:
parent
6c16e2911c
commit
c40acdd161
@ -208,11 +208,11 @@ main(void)
|
||||
do {
|
||||
#endif
|
||||
// * allocate heap for sample data
|
||||
SAMPLE_TYPE* buffer = calloc(
|
||||
SAMPLE_TYPE* buffer =
|
||||
#if SEQUENTIAL_MODE
|
||||
calc_block_size,
|
||||
malloc((size_t) calc_block_size *
|
||||
#else
|
||||
PRODUCT,
|
||||
calloc(PRODUCT,
|
||||
#endif
|
||||
sizeof(SAMPLE_TYPE));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user