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 744accb8aa..477818a23d 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 | |||
57 | 57 | ||
58 | extern void mdct_backward(int n, int32_t *in, int32_t *out); | 58 | extern void mdct_backward(int n, int32_t *in, int32_t *out); |
59 | 59 | ||
60 | #if defined(CPU_ARM) && (ARM_ARCH == 4) | ||
61 | /* optimised unsigned integer division for ARMv4, in IRAM */ | ||
62 | unsigned udiv32_arm(unsigned a, unsigned b); | ||
63 | #define UDIV32(a, b) udiv32_arm(a, b) | ||
64 | #else | ||
65 | /* default */ | ||
66 | #define UDIV32(a, b) (a / b) | ||
67 | #endif | ||
68 | |||
60 | /* Various codec helper functions */ | 69 | /* Various codec helper functions */ |
61 | 70 | ||
62 | int codec_init(void); | 71 | int codec_init(void); |