diff options
Diffstat (limited to 'apps/codecs/lib/codeclib.h')
| -rw-r--r-- | apps/codecs/lib/codeclib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index 744accb..477818a 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h @@ -57,6 +57,15 @@ void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, con extern void mdct_backward(int n, int32_t *in, int32_t *out); +#if defined(CPU_ARM) && (ARM_ARCH == 4) +/* optimised unsigned integer division for ARMv4, in IRAM */ +unsigned udiv32_arm(unsigned a, unsigned b); +#define UDIV32(a, b) udiv32_arm(a, b) +#else +/* default */ +#define UDIV32(a, b) (a / b) +#endif + /* Various codec helper functions */ int codec_init(void); |