Erik de Castro Lopo
eb0c5a3792
libFLAC : Remove FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap().
...
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 >
2014-07-06 20:27:31 +10:00
Erik de Castro Lopo
006b8356d5
Fix all instances of '#if HAVE_CONFIG_H'.
...
Should be '#ifdef HAVE_CONFIG_H'.
Closes: https://sourceforge.net/p/flac/bugs/410/
2014-03-24 12:06:49 +11:00
Erik de Castro Lopo
b334fb2a5c
Fix typos in comments.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com >
2014-02-24 21:47:20 +11:00
Erik de Castro Lopo
b1982fbc5f
Set version to 1.3.0 and update coyprights throughout.
2013-05-26 19:17:53 +10:00
Erik de Castro Lopo
9edb817dd2
MS VS inline/extern fix from Ben Alison plus comments.
...
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).
2013-03-12 17:12:07 +11:00
Miroslav Lichvar
8d9e5c6e8e
Optimize FLAC__bitreader_read_rice_signed_block.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-08-28 21:17:18 +10:00
Erik de Castro Lopo
5b62b770bc
Move all definitions of FLAC__U64L to one place.
2012-06-22 14:52:53 +10:00
Cristian Rodríguez
387b72731d
bitmath: Finish up optimizations
...
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 >
2012-06-08 19:58:29 +10:00
Miroslav Lichvar
5289b309cf
Optimize COUNT_ZERO_MSBS macro
...
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 >
2012-05-07 21:45:33 +10:00
Cristian Rodríguez
9b7cb22f84
Update and improve autotools build
...
- 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...
2012-04-08 09:03:03 +10:00
Cristian Rodríguez
f029625591
V2: Use a single definition of MIN and MAX in sources
2012-04-06 09:52:06 +10:00
Erik de Castro Lopo
6c2040dc90
Remove casting of return value from *alloc() functions.
2012-04-04 21:29:25 +10:00
Erik de Castro Lopo
66bd44bacc
Remove unnecessary typedef.
2012-03-30 22:25:39 +11:00
Erik de Castro Lopo
5c44cd7d0c
Add GCC specific optimisation for log base 2 operations.
...
Based on a patch from Cristian Rodríguez.
2012-03-30 21:55:08 +11:00
Erik de Castro Lopo
2f8b6a0349
Rename ENDSWAP_INT to ENDSWAP_32.
2012-03-05 21:12:20 +11:00
Erik de Castro Lopo
a5d1d4f0c5
Improve endswapping (especially purge ntohl).
2012-02-05 11:24:14 +11:00
Erik de Castro Lopo
6b3b137099
Fix a couple of -Winline warnings.
2012-02-01 19:49:54 +11:00
Josh Coalson
dea0f5a044
add 2009 copyright
2009-01-07 07:31:28 +00:00
Josh Coalson
ee51fc0bae
Fix bug in bitreader handling of read callback returning a short count (SF#2490454: https://sourceforge.net/tracker2/?func=detail&aid=2490454&group_id=13478&atid=113478 )
2009-01-06 17:14:31 +00:00
Josh Coalson
8e28e43b25
remove some inlining directives
2009-01-03 02:10:18 +00:00
Josh Coalson
a832ef32fb
fixes for windows builds (SF#1676822: https://sourceforge.net/tracker2/?func=detail&aid=1676822&group_id=13478&atid=113478 )
2009-01-02 01:12:59 +00:00
Josh Coalson
588e138867
win64 fixes
2008-06-03 06:52:20 +00:00
Josh Coalson
2737f6a86c
win64 fixes
2008-06-03 06:35:09 +00:00
Josh Coalson
82b128050e
update copyright for 2008
2008-02-28 05:34:21 +00:00
Josh Coalson
4d8060421b
Some MinGW fixes (SF#1684879: https://sourceforge.net/tracker/index.php?func=detail&aid=1684879&group_id=13478&atid=113478 )
2007-07-31 00:39:46 +00:00
Josh Coalson
e289ae5918
minor comments
2007-07-23 16:14:35 +00:00
Josh Coalson
9d8fa1e0c3
fork FLAC__bitreader_read_rice_signed_block() into MSVC and non-MSVC versions; minor optimizations to non-MSVC version
2007-03-23 04:50:54 +00:00
Josh Coalson
276d616a51
minor optimizations to FLAC__bitreader_read_rice_signed_block()
2007-03-22 03:20:12 +00:00
Josh Coalson
f1dfaebdfa
minor optimizations to FLAC__bitreader_read_rice_signed_block()
2007-03-22 03:19:52 +00:00
Josh Coalson
c9212fa01b
minor optimizations to FLAC__bitreader_read_rice_signed_block()
2007-03-22 03:19:19 +00:00
Josh Coalson
c63cf41ccc
minor optimizations to FLAC__bitbuffer_read_rice_signed_block()
2007-03-17 05:21:36 +00:00
Josh Coalson
6545409690
pass cpu info into bitreader, use it to turn on use of bswap inline asm for msvc
2007-03-13 16:14:36 +00:00
Josh Coalson
6775778dcc
fix MSVC check for ntohl()
2007-02-17 01:16:20 +00:00
Josh Coalson
f67f2065b3
Darwin fix for ntohl()
2007-02-13 02:12:13 +00:00
Josh Coalson
c85056b3d5
use inline byte-swapping function for MSVC
2007-02-04 02:57:48 +00:00
Josh Coalson
d1dd66b3f3
minor asserts
2007-02-03 02:54:10 +00:00
Josh Coalson
e3ec2ad59e
convert C prototypes for functions with no args from () to (void)
2007-01-31 03:53:22 +00:00
Josh Coalson
423f804d50
several speed improvements: completely rewritten bitbuffer which uses native machine word size instead of bytes; much faster rice partition size estimation; crc16 calculation in machine word size
2007-01-28 17:40:26 +00:00