Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-29 09:03:34 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-29 09:03:34 +0300
commitcac91ec4dbb4466c5f417ade44e5ca11501da129 (patch)
tree470b99ee30baf5fc7ed541c3d19e13635b64369f /libcelt/stack_alloc.h
parent877b1975b60e2aee2a75dcc4cfc0e66b3405a416 (diff)
Fixed temp arrays that were allocated too large (no change in peak mem)
Diffstat (limited to 'libcelt/stack_alloc.h')
-rw-r--r--libcelt/stack_alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/stack_alloc.h b/libcelt/stack_alloc.h
index f1bb0d8..3de8edd 100644
--- a/libcelt/stack_alloc.h
+++ b/libcelt/stack_alloc.h
@@ -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))))