Re: [FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simd align

2024-02-27 Thread Timo Rothenpieler
On 26.02.2024 17:58, Timo Rothenpieler wrote: On 11/02/2024 18:40, Timo Rothenpieler wrote: FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the

Re: [FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simd align

2024-02-26 Thread Timo Rothenpieler
On 11/02/2024 18:40, Timo Rothenpieler wrote: FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the compiler to safely assume the entire struct itself

[FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simd align

2024-02-11 Thread Timo Rothenpieler
FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the compiler to safely assume the entire struct itself is also 32 byte aligned. This might make the