Re: flac decoder output buffer alignment

Martijn van Beurden <[email protected]> Mon, 17 Mar 2025 08:37:42 +0100
Newsgroups gmane.comp.audio.compression.flac.devel
Message-ID <CADQbU6_PcuJYqpTBONB2F2CqkPRqzD-bxmhi1mjL4RJ-uv+UGQ@mail.gmail.com>
Op ma 17 mrt 2025 om 02:58 schreef Stefan Oltmanns <[email protected]>:
>
> Hi,
>
> yes, SSE requires aligned buffers for operations that directly read an
> operand from memory

libFLAC does unaligned SIMD all the time, both SSE and AVX, so I don't
think that is true. See

https://c9x.me/x86/html/file_module_x86_id_184.html

I'm not sure what you want from me here. On fairly modern CPUs,
unaligned memory access isn't really slower in most use cases. I
highly doubt this would really be a performance problem in your code
in any way. Maybe you can present some numbers?

Kind regards, Martijn van Beurden