Le 30 mai 2024 12:40:20 GMT+03:00, "Tomas Härdin" <g...@haerdin.se> a écrit : >tor 2024-05-30 klockan 09:41 +0300 skrev Rémi Denis-Courmont: >> Hi, >> >> Le 30 mai 2024 01:13:14 GMT+03:00, "Tomas Härdin" <g...@haerdin.se> a >> écrit : >> > The entire patchset passes FATE >> >> Is the version in riscv/intmath.h safe? It looks to me that the GCC >> codegen for not only RV64 but also AArch{32,64} and x86-64 is better >> than this. > >I haven't checked. It seems weird to me to have two different C >versions.
The common one ends up horrendously bad on RV, and presumably on MIPS and some other RISC ISA. > We shouldn't rely on type punning. Because? We should depend on punning as long as it conforms to the standard. > The standard compliant way >is to use memcpy() That's way worse than union in terms of how proactively the compiler needs to optimise, and both approaches are as confirming. _______________________________________________ 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".