# HG changeset patch # User nickols_k # Date 991904912 0 # Node ID 2ee9a18ed6f306b2b015e77e027055477a95ca49 # Parent 0ed3fa262ec6f6aa59dee05569c81ed026f02cc1 Minor improvements diff -r 0ed3fa262ec6 -r 2ee9a18ed6f3 mp3lib/fastmemcpy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mp3lib/fastmemcpy.h Thu Jun 07 09:08:32 2001 +0000 @@ -0,0 +1,1 @@ +#include "../libvo/fastmemcpy.h" \ No newline at end of file diff -r 0ed3fa262ec6 -r 2ee9a18ed6f3 mp3lib/sr1.c --- a/mp3lib/sr1.c Wed Jun 06 22:27:25 2001 +0000 +++ b/mp3lib/sr1.c Thu Jun 07 09:08:32 2001 +0000 @@ -27,6 +27,7 @@ #include "bswap.h" #include "d_cpu.h" +#include "fastmemcpy.h" //static FILE* mp3_file=NULL; int MP3_frames=0; @@ -177,7 +178,7 @@ // head_check: if( (newhead & 0xffe00000) != 0xffe00000 || - (newhead & 0x0000f300) == 0x0000f300) return FALSE; + (newhead & 0x0000fc00) == 0x0000fc00) return FALSE; fr->lay = 4-((newhead>>17)&3); // if(fr->lay!=3) return FALSE; diff -r 0ed3fa262ec6 -r 2ee9a18ed6f3 mp3lib/tabinit.c --- a/mp3lib/tabinit.c Wed Jun 06 22:27:25 2001 +0000 +++ b/mp3lib/tabinit.c Thu Jun 07 09:08:32 2001 +0000 @@ -1,8 +1,12 @@ #ifdef HAVE_3DNOW - real decwin[2*(512+32)]; - real cos64[32],cos32[16],cos16[8],cos8[4],cos4[2]; + real decwin[2*(512+32)] __attribute__((aligned(8))); + real cos64[32] __attribute__((aligned(8))); + real cos32[16] __attribute__((aligned(8))); + real cos16[8] __attribute__((aligned(8))); + real cos8[4] __attribute__((aligned(8))); + real cos4[2] __attribute__((aligned(8))); real *pnts[]={ cos64,cos32,cos16,cos8,cos4 }; #else real decwin[512+32]; @@ -10,7 +14,7 @@ real *pnts[] = { cos64,cos32,cos16,cos8,cos4 }; #endif - long intwinbase[] = { +long intwinbase[] = { 0, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -3, -3, -4, -4, -5, -5, -6, -7, -7, -8, -9, -10, -11, -13, -14, -16, -17, -19, -21,