changeset 23465:a1a699833dcf

Change some static temporary vars to automatic ones because mingw32 binutils couldn't align them properly. Also 1% faster decode.
author zuxy
date Wed, 06 Jun 2007 05:16:08 +0000
parents 1b1fdac4a68c
children db5fd8a09c97
files mp3lib/dct64_sse.c mp3lib/layer3.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/dct64_sse.c	Wed Jun 06 05:13:13 2007 +0000
+++ b/mp3lib/dct64_sse.c	Wed Jun 06 05:16:08 2007 +0000
@@ -22,8 +22,8 @@
 
 void dct64_sse(short *out0,short *out1,real *c)
 {
-    static DECLARE_ALIGNED(16, real, b1[0x20]);
-    static DECLARE_ALIGNED(16, real, b2[0x20]);
+    DECLARE_ALIGNED(16, real, b1[0x20]);
+    DECLARE_ALIGNED(16, real, b2[0x20]);
     static real const one = 1.f;
 
     {
--- a/mp3lib/layer3.c	Wed Jun 06 05:13:13 2007 +0000
+++ b/mp3lib/layer3.c	Wed Jun 06 05:16:08 2007 +0000
@@ -1260,8 +1260,8 @@
 
   granules = (fr->lsf) ? 1 : 2;
   for (gr=0;gr<granules;gr++){
-    static DECLARE_ALIGNED(16, real, hybridIn[2][SBLIMIT][SSLIMIT]);
-    static DECLARE_ALIGNED(16, real, hybridOut[2][SSLIMIT][SBLIMIT]);
+    DECLARE_ALIGNED(16, real, hybridIn[2][SBLIMIT][SSLIMIT]);
+    DECLARE_ALIGNED(16, real, hybridOut[2][SSLIMIT][SBLIMIT]);
 
     { struct gr_info_s *gr_info = &(sideinfo.ch[0].gr[gr]);
       int part2bits;