mirror of
https://github.com/xiph/opus.git
synced 2025-05-16 16:38:30 +00:00
Fixed temp arrays that were allocated too large (no change in peak mem)
This commit is contained in:
parent
877b1975b6
commit
cac91ec4db
2 changed files with 5 additions and 5 deletions
|
@ -105,7 +105,7 @@
|
|||
|
||||
#include <valgrind/memcheck.h>
|
||||
|
||||
#define ALLOC_STACK(stack) (stack = (stack==0) ? celt_alloc_scratch(30000) : stack, VALGRIND_MAKE_NOACCESS(stack, 1000))
|
||||
#define ALLOC_STACK(stack) (stack = (stack==0) ? celt_alloc_scratch(25000) : stack, VALGRIND_MAKE_NOACCESS(stack, 1000))
|
||||
#define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1))
|
||||
|
||||
#define PUSH(stack, size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_WRITABLE(stack, ((size)*sizeof(type))),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue