search for: rbuffer

Displaying 2 results from an estimated 2 matches for "rbuffer".

Did you mean: buffer
2004 Dec 29
0
libFLAC bitbuffer optimizations
...gt; + /* > + * memset and memcpy are usually implemented in assembly language > + * by the system libc, and they can be much faster > + */ > + unsigned r_end = (bb->blurbs + (bb->bits? 1:0)), > + r = bb->consumed_blurbs, l = r_end - r; > + FLAC__blurb * rbuffer = &bb->buffer[r]; > + memcpy(&bb->buffer[0], rbuffer, r_end/4 + r_end%4); > + memset(++rbuffer, 0, l/4 + l%4); > +#elif FLAC__BITS_PER_BLURB == 32 > + /* the original version */ > unsigned l = 0, r = bb->consumed_blurbs, r_end = bb->blurbs + > (bb->bit...
2004 Dec 28
2
libFLAC bitbuffer optimizations
...{ +#if FLAC__BITS_PER_BLURB == 8 + /* + * memset and memcpy are usually implemented in assembly language + * by the system libc, and they can be much faster + */ + unsigned r_end = (bb->blurbs + (bb->bits? 1:0)), + r = bb->consumed_blurbs, l = r_end - r; + FLAC__blurb * rbuffer = &bb->buffer[r]; + memcpy(&bb->buffer[0], rbuffer, r_end/4 + r_end%4); + memset(++rbuffer, 0, l/4 + l%4); +#elif FLAC__BITS_PER_BLURB == 32 + /* the original version */ unsigned l = 0, r = bb->consumed_blurbs, r_end = bb->blurbs + (bb->bits? 1:0); for( ; r < r_en...