1
0
Fork 0
forked from len0rd/rockbox

duke3d: rewrite sound mixing to use fixed-point

Gives significant performance improvement on ipod6g.

Change-Id: I1e8462bec197acb10e770c796240b5001df52440
This commit is contained in:
Franklin Wei 2017-12-25 14:53:11 -05:00
parent 78db1d9502
commit 9f6ce046cb
10 changed files with 476 additions and 449 deletions

View file

@ -195,4 +195,17 @@ void fatal(char *fmt, ...);
void rb_exit(int rc);
void rbsdl_atexit(void (*)(void));
/* speed */
static inline uint16_t readLE16(void *addr)
{
uint8_t *ptr = addr;
return (*(ptr+1) << 8) | *ptr;
}
static inline uint32_t readLE32(void *addr)
{
uint8_t *ptr = addr;
return (*(ptr+3) << 24) |(*(ptr+2) << 16) | (*(ptr+1) << 8) | *ptr;
}
#endif /* _SDL_config_rockbox_h */