forked from len0rd/rockbox
Call the asm definitions of fixmul functions when possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22303 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b736f26fdc
commit
a0092593c9
1 changed files with 11 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
#include <stdlib.h>
|
||||
#ifdef ROCKBOX
|
||||
#include "asm_arm.h"
|
||||
#include "asm_mcf5249.h"
|
||||
#include "codeclib_misc.h"
|
||||
#endif
|
||||
|
||||
/* Macros for converting between various fixed-point representations and floating point. */
|
||||
#define ONE_16 (1L << 16)
|
||||
|
|
@ -8,7 +13,12 @@
|
|||
#define fix31tof64(x) (float)((float)(x) / (float)(1 << 31))
|
||||
|
||||
/* Fixed point math routines for use in atrac3.c */
|
||||
inline int32_t fixdiv16(int32_t x, int32_t y);
|
||||
#ifdef ROCKBOX
|
||||
#define fixmul31(x,y) (MULT31(x,y))
|
||||
#define fixmul16(x,y) (MULT32(x,y))
|
||||
#else
|
||||
inline int32_t fixmul16(int32_t x, int32_t y);
|
||||
inline int32_t fixmul31(int32_t x, int32_t y);
|
||||
#endif /* ROCKBOX */
|
||||
inline int32_t fixdiv16(int32_t x, int32_t y);
|
||||
inline int32_t fastSqrt(int32_t n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue