Les articles publiés sur le site
-
29 juin 2014, par Erik de Castro Lopo
include/share/endswap.h : Fix fallback ENDSWAP_16 macro.
- [DH] include/share/endswap.h
-
29 juin 2014, par Erik de Castro Lopo
src/flac/encode.c : Fix cast-align warning on ARM systems.
Use the union of pointers trick again.
-
29 juin 2014, par Erik de Castro Lopo
libFLAC/md5: Fix for cast-align warnings on ARM.
Rather than the buffer into format_input_() as a FLAC__byte pointer, pass
it as a pointer to a union of three pointers, one each for for FLAC__byte,
FLAC__int16 and FLAC_int32.
This should have zero measurable performance impact.
- [DH] src/libFLAC/include/private/md5.h
- [DH] src/libFLAC/md5.c
-
29 juin 2014, par Erik de Castro Lopo
libFLAC/md5.c : Massive refactoring of format_input_ function.
This refactoring is in preparation for fixing the cast-align warning when
compiling on ARM (and possibly others). Testing on stereo 16 bit files
suggests that the difference between the performance of this code and the
old code is negligible (tested only on amd64/linux).
-
29 juin 2014, par Erik de Castro Lopo
include/share/endswap.h : Add endswapping of 16 bit values.
Also add macros H2LE_16 and H2LE_32, which do host to little-endian
swapping of 16 and 32 bit values respectively.
- [DH] include/share/endswap.h