forked from len0rd/rockbox
Upgrade to libspeex 1.2beta2. Very minor performance increase (0.6% on coldfire).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13461 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8970055ec1
commit
df6f2f9a3c
36 changed files with 626 additions and 302 deletions
|
|
@ -63,30 +63,6 @@ long long spx_mips=0;
|
|||
#endif
|
||||
|
||||
|
||||
spx_uint32_t be_int(spx_uint32_t i)
|
||||
{
|
||||
spx_uint32_t ret=i;
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
ret = i>>24;
|
||||
ret += (i>>8)&0x0000ff00;
|
||||
ret += (i<<8)&0x00ff0000;
|
||||
ret += (i<<24);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
spx_uint32_t le_int(spx_uint32_t i)
|
||||
{
|
||||
spx_uint32_t ret=i;
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
ret = i>>24;
|
||||
ret += (i>>8)&0x0000ff00;
|
||||
ret += (i<<8)&0x00ff0000;
|
||||
ret += (i<<24);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifndef OVERRIDE_SPEEX_ALLOC
|
||||
void *speex_alloc (int size)
|
||||
{
|
||||
|
|
@ -132,7 +108,7 @@ void *speex_move (void *dest, void *src, int n)
|
|||
#ifndef OVERRIDE_SPEEX_ERROR
|
||||
void speex_error(const char *str)
|
||||
{
|
||||
fprintf (stderr, "Fatal error: %s\n", str);
|
||||
fprintf (stderr, "Fatal (internal) error: %s\n", str);
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -140,14 +116,27 @@ void speex_error(const char *str)
|
|||
#ifndef OVERRIDE_SPEEX_WARNING
|
||||
void speex_warning(const char *str)
|
||||
{
|
||||
#ifndef DISABLE_WARNINGS
|
||||
fprintf (stderr, "warning: %s\n", str);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef OVERRIDE_SPEEX_WARNING_INT
|
||||
void speex_warning_int(const char *str, int val)
|
||||
{
|
||||
#ifndef DISABLE_WARNINGS
|
||||
fprintf (stderr, "warning: %s %d\n", str, val);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef OVERRIDE_SPEEX_NOTIFY
|
||||
void speex_notify(const char *str)
|
||||
{
|
||||
#ifndef DISABLE_NOTIFICATIONS
|
||||
fprintf (stderr, "notification: %s\n", str);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue