spice-common/common
Frediano Ziglio bb8d75bf31 canvas_base: Avoid misaligned access decoding LZ4 data
Make code faster on platforms not supporting unaligned access by
default.
SPICE_UNALIGNED_CAST is just silencing possible alignment warning and,
if enabled, produces some logs, however in this case we know that the
pointer can be misaligned.
Use packed structures to tell compiler to generate best code possible.
For more details see comment on commit 74e50b57ae ("Make the
compiler work out better way to write unaligned memory").

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-07-05 09:38:30 +01:00
..
backtrace.c Remove headers that are included in spice_common.h 2016-01-07 12:46:42 +01:00
backtrace.h common/backtrace: for mingw32 no pipe/wait_pid, just disable 2012-03-20 15:25:55 +01:00
canvas_base.c canvas_base: Avoid misaligned access decoding LZ4 data 2018-07-05 09:38:30 +01:00
canvas_base.h canvas: Remove unused include header 2018-01-18 14:34:26 +00:00
canvas_utils.c canvas: Unify __surface_create_stride and surface_create_stride 2018-01-18 14:34:24 +00:00
canvas_utils.h canvas: Remove unused include header 2018-01-18 14:34:26 +00:00
client_demarshallers.h build-sys: make it a seperately buildable spice-common library 2012-03-22 20:21:05 +01:00
client_marshallers.h Use explicit path for inclusion 2016-07-13 15:03:34 -03:00
draw.h draw: Add spice_image_descriptor_is_lossy 2016-01-20 15:56:00 +00:00
lines.c miLineArc(): initialize edge1, edge2 2018-05-10 10:05:41 -05:00
lines.h build-sys: make it a seperately buildable spice-common library 2012-03-22 20:21:05 +01:00
log.c log: Only install glib log handler if SPICE_DEBUG_LEVEL is set 2018-06-20 17:35:43 +01:00
log.h log: Remove spice_printerr macro 2018-06-29 19:02:21 +01:00
lz_common.h ppc: Fix lz magic endianess 2015-07-02 13:31:28 +02:00
lz_compress_tmpl.c lz: Inline GET_{r,g,b} macros 2018-05-25 11:54:18 +01:00
lz_config.h common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
lz_decompress_tmpl.c lz: Simplify code 2018-01-18 10:08:43 +00:00
lz.c lz: Remove unused encode_level and only assigned io_start 2018-01-18 10:08:46 +00:00
lz.h Add SPICE_ATTR_NORETURN on prototype of error functions 2018-06-26 10:25:42 +01:00
macros.h Define a new SPICE_VERIFY macro 2016-11-14 17:19:18 +00:00
Makefile.am build: Reindent macros 2018-06-28 13:34:14 +01:00
marshaller.c marshaller: Fix a possible leak 2018-06-27 21:44:05 +01:00
marshaller.h marshaller: Remove deprecated replacement functions 2016-12-08 13:49:13 +00:00
mem.c Avoid clang warnings on casts with stricter alignment requirements 2017-06-20 11:33:45 +02:00
mem.h Avoid clang warnings on casts with stricter alignment requirements 2017-06-20 11:33:45 +02:00
meson.build build: Remove bitops.h 2018-06-05 14:10:22 +01:00
messages.h messages: document limitation of id in StreamCreate 2018-05-05 13:00:56 +01:00
pixman_utils.c Remove headers that are included in spice_common.h 2016-01-07 12:46:42 +01:00
pixman_utils.h pixman_utils: Add macros for color byte ordering 2015-12-17 16:03:19 +01:00
quic_config.h Use SPICE_{BEGIN,END}_DECLS 2012-03-20 15:30:23 +01:00
quic_family_tmpl.c quic: Call encode from golomb_coding 2018-07-03 19:37:39 +01:00
quic_rgb_tmpl.c quic: Call encode from golomb_coding 2018-07-03 19:37:39 +01:00
quic_tmpl.c quic: Call encode from golomb_coding 2018-07-03 19:37:39 +01:00
quic.c quic: Call encode from golomb_coding 2018-07-03 19:37:39 +01:00
quic.h Add SPICE_ATTR_NORETURN on prototype of error functions 2018-06-26 10:25:42 +01:00
rect.h Remove INLINE usage 2013-10-04 12:45:00 +02:00
region.c test-region: Create proper test for region from source code 2018-06-27 13:17:41 +01:00
region.h Document REGION_TEST_* bitmasks 2017-02-03 11:07:32 -06:00
ring.h ring: Remove short living temporary variable 2017-11-07 13:11:19 +00:00
rop3.c use macro to define constructor function 2016-03-23 15:06:08 +00:00
rop3.h Remove deprecated init functions 2016-06-13 11:28:58 +01:00
snd_codec.c snd: Replace spice_printerr() use with g_warning 2018-06-28 13:39:52 +02:00
snd_codec.h Add support for the Opus codec. 2014-01-02 12:28:21 +01:00
spice_common.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
ssl_verify.c ssl_verify: Fix build for newer LibreSSL 2018-06-26 18:30:58 +01:00
ssl_verify.h ssl_verify: Move wincrypt.h related #ifdef closer to the include 2015-03-26 10:15:04 +01:00
sw_canvas.c swcanvas: Remove canvas_create() 2018-07-04 10:04:02 +02:00
sw_canvas.h swcanvas: Remove canvas_create() 2018-07-04 10:04:02 +02:00
verify.h Adjust verify.h licence 2016-06-21 12:26:38 +02:00