Le torstaina 22. toukokuuta 2025, 9.32.18 Itä-Euroopan kesäaika Jiawei a écrit 
:
> > The RISC-V autovectorised output looks like it has a warning "Odd
> > rotation angle" which is not present in the non-autovectorised output.
> 
> I found this occured when using '-ffast-math' in RISC-V, also occur in
> -O3 -ffast-math -fno-tree-vectorize case(much slower due to the
> -ffast-math),supplementary more comparison results here:

Unfortunately, the FFmpeg code is written with x87 semantics in mind. For 
instance, the FFmpeg math macros work nicely on x86, but they would work much 
better with fabs/fmax/fmin/fabsf/fmaxf/fminf on other platforms. I tried to fix 
that with copious amount of _Generic(), but that lead to ICE...

So we are stuck between a rock and a hard place where we need fast math for 
good perfs, but we need to turn it off for correct results.

-- 
ヅニ-クーモン・レミ
Hagalund ny stad, f.d. Finska republik Nylands



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to