Adds use of restrict keyword to improve encoding speed.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 10 Oct 2013 07:24:19 +0000 (18:24 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 10 Oct 2013 07:24:19 +0000 (18:24 +1100)
commitcf28c0144bdedf4fdcbfc901f684ef62a1b38d14
tree6f071313e8bbb2470a623bdbb5c6a0aa2c75e260
parenta1abfa3df29fc7fcb8cee35365c51db8fbc99dbc
Adds use of restrict keyword to improve encoding speed.

Restrict works very poorly in Visual Studio (much slower than without)
so defined flac_restrict in share/compat.h and use that in:

    lpc_compute_residual...()
    lpc_restore_signal...()

As a result, FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41()
offers no advantage for 64-bit compiles and was removed from x86-64 part
of stream_encoder.c

Patch-from: lvqcl <lvqcl.mail@gmail.com>
include/share/compat.h
src/libFLAC/lpc.c
src/libFLAC/stream_encoder.c