mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
Commit FS#9915 by Sei Aoyumi. Adds hints to help GCC better optimize vorbis decoding. Gives a minor speed increase.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20030 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5593de5e79
commit
bd60270418
4 changed files with 5 additions and 5 deletions
|
|
@ -131,8 +131,8 @@ static int _halt_one(oggpack_buffer *b){
|
|||
}
|
||||
|
||||
/* bits <= 32 */
|
||||
long oggpack_read(oggpack_buffer *b,int bits) ICODE_ATTR_TREMOR_NOT_MDCT;
|
||||
long oggpack_read(oggpack_buffer *b,int bits){
|
||||
long oggpack_read(oggpack_buffer *b,register int bits) ICODE_ATTR_TREMOR_NOT_MDCT;
|
||||
long oggpack_read(oggpack_buffer *b,register int bits){
|
||||
unsigned long m=oggpack_mask[bits];
|
||||
ogg_uint32_t ret=-1;
|
||||
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ static long vorbis_book_decodevv_add_2ch_even(codebook *book,ogg_int32_t **a,
|
|||
long vorbis_book_decodevv_add(codebook *book,ogg_int32_t **a,
|
||||
long offset,int ch,
|
||||
oggpack_buffer *b,int n,int point){
|
||||
if(book->used_entries>0){
|
||||
if(LIKELY(book->used_entries>0)){
|
||||
long i,j,k,chunk,read;
|
||||
int chptr=0;
|
||||
int shift=point-book->binarypoint;
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ static void render_line(int n, int x0,register int x1,int y0,int y1,ogg_int32_t
|
|||
if(n>x1)n=x1;
|
||||
ady-=abs(base*adx);
|
||||
|
||||
if(x<n)
|
||||
if(LIKELY(x<n))
|
||||
d[x]= MULT31_SHIFT15(d[x],FLOOR_fromdB_LOOKUP[y]);
|
||||
|
||||
while(++x<n){
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ typedef struct {
|
|||
|
||||
extern void oggpack_readinit(oggpack_buffer *b,ogg_reference *r);
|
||||
extern long oggpack_look_full(oggpack_buffer *b,int bits);
|
||||
extern long oggpack_read(oggpack_buffer *b,int bits);
|
||||
extern long oggpack_read(oggpack_buffer *b,register int bits);
|
||||
|
||||
/* Inline a few, often called functions */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue