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

Zhao Zhili quinkblack at foxmail.com
Sat May 31 20:54:42 EEST 2025



> On Jun 1, 2025, at 01:40, Marton Balint <cus at passwd.hu> wrote:
> 
> 
> 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?

doc/developer says "for the public headers which must stay C99 compatible."

> 
> 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
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list