Package: lzo2 / 2.08-1.2

Metadata

Package Version Patches format
lzo2 2.08-1.2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Conditionally replace reinvention of memcpy with cal.patch | (download)

minilzo/minilzo.c | 76 64 + 12 - 0 !
src/lzo_conf.h | 2 0 + 2 - 0 !
src/lzo_func.h | 71 61 + 10 - 0 !
3 files changed, 125 insertions(+), 24 deletions(-)

 conditionally replace reinvention of memcpy() with calls to memcpy()

gcc already knows how to inline memcpy calls with constant n,
and also gets the alignment constraints right, avoiding incorrect
unaligned accesses on armel.

Unconditionally define LZO_MEMOPS_GET_NE64 since it's trivial
to do in terms of LZO_MEMOPS_COPY8.

I've made the "modern C" version conditional since lzo seems to aim
to be portable to anything and everything, but it would probably
be better off just requiring a compiler from this century and
a set of correctly working memwhatever() implementations.

Bug-Debian: https://bugs.debian.org/757037