template.c: use malloc
in sequential mode
This commit is contained in:
parent
6c16e2911c
commit
c40acdd161
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user