summaryrefslogtreecommitdiffstats
path: root/mp3lib/layer2.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3lib/layer2.c')
-rw-r--r--mp3lib/layer2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mp3lib/layer2.c b/mp3lib/layer2.c
index b8d7d12df7..21722e5533 100644
--- a/mp3lib/layer2.c
+++ b/mp3lib/layer2.c
@@ -50,8 +50,16 @@ static void init_layer2(void)
{
double m=mulmul[k];
table = muls[k];
+ if(_has_mmx)
+ {
+ for(j=3,i=0;i<63;i++,j--)
+ *table++ = 16384 * m * pow(2.0,(double) j / 3.0);
+ }
+ else
for(j=3,i=0;i<63;i++,j--)
+ {
*table++ = m * pow(2.0,(double) j / 3.0);
+ }
*table++ = 0.0;
}
}