[flac-dev] flac decoder output buffer alignment
Martijn van Beurden
mvanb1 at gmail.com
Mon Mar 17 07:37:42 UTC 2025
Op ma 17 mrt 2025 om 02:58 schreef Stefan Oltmanns <stefan-oltmanns at gmx.net>:
>
> 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
More information about the flac-dev
mailing list