[xiph-cvs] cvs commit: speex/libspeex stack_alloc.h

Jean-Marc Valin jm at xiph.org
Mon Oct 21 18:50:07 PDT 2002



jm          02/10/21 21:50:07

  Modified:    libspeex stack_alloc.h
  Log:
  oops... there was a bug in PUSH (don't know what yet)

Revision  Changes    Path
1.5       +6 -4      speex/libspeex/stack_alloc.h

Index: stack_alloc.h
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/stack_alloc.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- stack_alloc.h	21 Oct 2002 20:39:38 -0000	1.4
+++ stack_alloc.h	22 Oct 2002 01:50:07 -0000	1.5
@@ -34,13 +34,15 @@
 #ifndef STACK_ALLOC_H
 #define STACK_ALLOC_H
 
-/*
-#define PUSH(stack, size) (((int*)stack)[size]=(size),stack+=(size)+1,stack-(size)-1)
+
+/*#define PUSH(stack, size) (((int*)stack)[size]=(size),stack+=(size)+1,stack-(size)-1)
 #define POP(stack) (stack-=((int*)stack)[-1]+1)
 */
 
-/*#define PUSH(stack, size) (stack+=(size),stack-(size))*/
+#define PUSH(stack, size) (stack+=(size),stack-(size))
+
 
-#define PUSH(stack, size) (stack=(float*)(((int)stack)+(size*sizeof(float))),(float*)(((int)stack)-(size*sizeof(float))))
+/*#define PUSH(stack, size) (stack=(float*)(((int)stack)+(size*sizeof(float))),(float*)(((int)stack)-(size*sizeof(float))))
+ */
 
 #endif

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list