forked from KolibriOS/kolibrios
libmpg123 1.15.4
git-svn-id: svn://kolibrios.org@3960 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -90,7 +90,7 @@ void prepare_decode_tables()
|
||||
}
|
||||
|
||||
#ifdef OPT_MMXORSSE
|
||||
#ifndef OPT_X86_64
|
||||
#if !defined(OPT_X86_64) && !defined(OPT_NEON)
|
||||
void make_decode_tables_mmx_asm(long scaleval, float* decwin_mmx, float *decwins);
|
||||
void make_decode_tables_mmx(mpg123_handle *fr)
|
||||
{
|
||||
@@ -210,8 +210,8 @@ void make_decode_tables(mpg123_handle *fr)
|
||||
scaleval = - scaleval;
|
||||
#endif
|
||||
}
|
||||
#if defined(OPT_X86_64) || defined(OPT_ALTIVEC) || defined(OPT_SSE) || defined(OPT_ARM)
|
||||
if(fr->cpu_opts.type == x86_64 || fr->cpu_opts.type == altivec || fr->cpu_opts.type == sse || fr->cpu_opts.type == arm)
|
||||
#if defined(OPT_X86_64) || defined(OPT_ALTIVEC) || defined(OPT_SSE) || defined(OPT_ARM) || defined(OPT_NEON)
|
||||
if(fr->cpu_opts.type == x86_64 || fr->cpu_opts.type == altivec || fr->cpu_opts.type == sse || fr->cpu_opts.type == arm || fr->cpu_opts.type == neon)
|
||||
{ /* for float SSE / AltiVec / ARM decoder */
|
||||
for(i=512; i<512+32; i++)
|
||||
{
|
||||
@@ -221,6 +221,15 @@ void make_decode_tables(mpg123_handle *fr)
|
||||
{
|
||||
fr->decwin[512+32+i] = -fr->decwin[511-i];
|
||||
}
|
||||
#ifdef OPT_NEON
|
||||
if(fr->cpu_opts.type == neon)
|
||||
{
|
||||
for(i=0; i<512; i+=2)
|
||||
{
|
||||
fr->decwin[i] = -fr->decwin[i];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
debug("decode tables done");
|
||||
|
Reference in New Issue
Block a user