> > Ok, so it is a GCC's bug? > > It's perhaps an optimization that gcc doesn't do. But then > there is an infinite number of optimizations that gcc doesn't do. How should I modify GCC's inline to repleace MULH function (to make it compatible)? I will copy & paste the code to FFmpeg's source and do the benchmark with FFmpeg.