[FFmpeg-devel] [PATCH 1/2] Replace FFMIN/FFMAX by type specific macros

Marton Balint cus at passwd.hu
Sat May 31 20:40:40 EEST 2025



On Sat, 31 May 2025, Michael Niedermayer wrote:

> This allows adjusting them to exactly match whatever is fastest on
> a given CPU for each type.

Did you use some tool to make this patch, or it was just manual work?

Can't you use C11 generics to make this somewhat automatic?

And if we are introducing something new, do we really want to stick to 
MIN/MAX macros which possibly evaluate their argument multiple times? It 
was always an issue, so I would love to see us moving away from it.

Thanks,
Marton


More information about the ffmpeg-devel mailing list