summaryrefslogtreecommitdiff
path: root/src/libFLAC/bitreader.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix miscellaneous typos.luz.paz2018-05-241-1/+1
| | | | Found via `codespell -q 3`
* Fix CRC calculation for small blocks.Robert Kausch2018-05-211-1/+1
|
* Update CRC16 for larger data blocks when decoding.Robert Kausch2018-05-211-28/+33
|
* Fix GCC 7 case fall through warningsErik de Castro Lopo2017-06-261-11/+11
| | | | | GCC 7 warns about `case` statements which are not separated by a `break` statement. This warning can be fixed by adding a comment.
* Fix cppcheck warningsRosen Penev2017-01-191-2/+2
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Purge usage of `unsigned` typeErik de Castro Lopo2017-01-141-62/+62
| | | | | | | As pointed out by Ozkan Sezer, on some platforms `int32_t` is actually a typedef for `long` so `unsigned` cannot be used interchangably with `FLAC__uint32`. Fix is to switch from `unsigned` to explicit sized ISO C types defined in <stdint.h>.
* Bulk update copyright datesErik de Castro Lopo2016-12-051-1/+1
|
* configure.ac: Add --enable-64-bit-words optionErik de Castro Lopo2016-01-041-1/+1
| | | | | The old 32 bit words the default which can be overridded with this configure option.
* libFLAC: Support 64bit brword/bwwordErik de Castro Lopo2016-01-041-35/+61
| | | | | | | This patch allows FLAC__BYTES_PER_WORD to be set to 8, but is disabled by default. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* libFLAC/bitreader.c: Fix undefined behaviourErik de Castro Lopo2015-08-231-4/+6
| | | | | | The function FLAC__bitreader_read_raw_int32() triggered undefined behaviour when sign extending an unsigned value. The Stanford Grahpics bithacks page provided an alternative that avoided UB.
* Update copyright years to include 2014.Erik de Castro Lopo2014-11-251-1/+1
|
* libFLAC/bitreader.c : Remove redundant/incorrect comment.Erik de Castro Lopo2014-07-271-1/+0
| | | | | | This comment should have been removed in commit eb0c5a37. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* libFLAC/bitreader : Remove un-needed FLAC__CPUInfo field from FLAC__BitReader.Erik de Castro Lopo2014-07-271-3/+1
| | | | | | | | In FLAC 1.2.0, a new field 'FLAC__CPUInfo cpu_info' was added to the FLAC__BitReader struct. It became useless in 1.3.0 because of various bitreader optimizations. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* libFLAC : Remove FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap().Erik de Castro Lopo2014-07-061-2/+1
| | | | | | | | This function was un-used because it showed no speed improvement over the C version. As a result the bitreader_read_from_client_() function can be made static again. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Fix all instances of '#if HAVE_CONFIG_H'.Erik de Castro Lopo2014-03-241-1/+1
| | | | | | Should be '#ifdef HAVE_CONFIG_H'. Closes: https://sourceforge.net/p/flac/bugs/410/
* Fix typos in comments.Erik de Castro Lopo2014-02-241-2/+2
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Set version to 1.3.0 and update coyprights throughout.Erik de Castro Lopo2013-05-261-1/+2
|
* MS VS inline/extern fix from Ben Alison plus comments.Erik de Castro Lopo2013-03-121-0/+13
| | | | | | | Add explicit extern to functions that are locally declared inline but which also have non-inline public prototypes. It seems MS VS does not quite meet the C99 spec (section 6.7.4).
* Optimize FLAC__bitreader_read_rice_signed_block.Miroslav Lichvar2012-08-281-340/+105
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Move all definitions of FLAC__U64L to one place.Erik de Castro Lopo2012-06-221-7/+1
|
* bitmath: Finish up optimizationsCristian Rodríguez2012-06-081-47/+7
| | | | | | | This patch adds support for other compilers and systems including MSVC, Intel C compiler etc.. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Optimize COUNT_ZERO_MSBS macroMiroslav Lichvar2012-05-071-3/+5
| | | | | | | | Reorder the conditions according to the expected distribution of input signal. This seems to make it almost as fast as the clz builtin using the bsr instruction. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Update and improve autotools buildCristian Rodríguez2012-04-081-9/+5
| | | | | | | | | | | - INCLUDES is deprecated, and CPPFLAGS is an user-defined variable, use the proper AM_CPPFLAGS instead - Remove FLAC__INLINE definition, providing proper replacement for MSVC compilers. - Detect if we have C99 's lround and provide a replacement for windows...
* V2: Use a single definition of MIN and MAX in sourcesCristian Rodríguez2012-04-061-10/+2
|
* Remove casting of return value from *alloc() functions.Erik de Castro Lopo2012-04-041-2/+2
|
* Remove unnecessary typedef.Erik de Castro Lopo2012-03-301-21/+20
|
* Add GCC specific optimisation for log base 2 operations.Erik de Castro Lopo2012-03-301-2/+12
| | | | Based on a patch from Cristian Rodríguez.
* Rename ENDSWAP_INT to ENDSWAP_32.Erik de Castro Lopo2012-03-051-1/+1
|
* Improve endswapping (especially purge ntohl).Erik de Castro Lopo2012-02-051-56/+4
|
* Fix a couple of -Winline warnings.Erik de Castro Lopo2012-02-011-1/+1
|
* add 2009 copyrightJosh Coalson2009-01-071-1/+1
|
* Fix bug in bitreader handling of read callback returning a short count ↵Josh Coalson2009-01-061-6/+6
| | | | (SF#2490454: https://sourceforge.net/tracker2/?func=detail&aid=2490454&group_id=13478&atid=113478)
* remove some inlining directivesJosh Coalson2009-01-031-1/+1
|
* fixes for windows builds (SF#1676822: ↵Josh Coalson2009-01-021-4/+7
| | | | https://sourceforge.net/tracker2/?func=detail&aid=1676822&group_id=13478&atid=113478)
* win64 fixesJosh Coalson2008-06-031-0/+1
|
* win64 fixesJosh Coalson2008-06-031-1/+4
|
* update copyright for 2008Josh Coalson2008-02-281-1/+1
|
* Some MinGW fixes (SF#1684879: ↵Josh Coalson2007-07-311-0/+2
| | | | https://sourceforge.net/tracker/index.php?func=detail&aid=1684879&group_id=13478&atid=113478)
* minor commentsJosh Coalson2007-07-231-0/+1
|
* fork FLAC__bitreader_read_rice_signed_block() into MSVC and non-MSVC ↵Josh Coalson2007-03-231-41/+211
| | | | versions; minor optimizations to non-MSVC version
* minor optimizations to FLAC__bitreader_read_rice_signed_block()Josh Coalson2007-03-221-14/+10
|
* minor optimizations to FLAC__bitreader_read_rice_signed_block()Josh Coalson2007-03-221-22/+20
|
* minor optimizations to FLAC__bitreader_read_rice_signed_block()Josh Coalson2007-03-221-1/+14
|
* minor optimizations to FLAC__bitbuffer_read_rice_signed_block()Josh Coalson2007-03-171-8/+11
|
* pass cpu info into bitreader, use it to turn on use of bswap inline asm for msvcJosh Coalson2007-03-131-10/+28
|
* fix MSVC check for ntohl()Josh Coalson2007-02-171-1/+1
|
* Darwin fix for ntohl()Josh Coalson2007-02-131-0/+2
|
* use inline byte-swapping function for MSVCJosh Coalson2007-02-041-0/+13
|
* minor assertsJosh Coalson2007-02-031-4/+0
|
* convert C prototypes for functions with no args from () to (void)Josh Coalson2007-01-311-1/+1
|