Friday, March 03, 2023

Re: Unbreak zstd on strict alignment architectures

Theo Buehler:

> Another possibility is to do
>
> +# include <endian.h>
> +# if defined(__GNUC__) && !defined(__STRICT_ALIGNMENT)
> # define MEM_FORCE_MEMORY_ACCESS 1
> # endif

That's what I use in archivers/unrar.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

No comments:

Post a Comment