[FFmpeg-devel] [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.

Dale Curtis dalecurtis at chromium.org
Wed May 27 21:27:14 EEST 2020


On Wed, May 27, 2020 at 11:10 AM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> so the builtin does better and both locally do better than clang on the web
> tool
>

Ah, sorry I forgot godbolt is compiling without any options, if you type
-O9 in the compiler options fields you get:
clang: https://godbolt.org/z/CAMXer
gcc:  https://godbolt.org/z/EKqGt6

Which is similar to what you've gotten above; with the builtin having the
smallest code.

- dale


More information about the ffmpeg-devel mailing list