Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Martin Storsjö
On Fri, 24 Apr 2020, Guo, Yejun wrote: -Original Message- From: ffmpeg-devel On Behalf Of Martin Storsj? Sent: Friday, April 24, 2020 6:44 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Martin > Storsj? > Sent: Friday, April 24, 2020 6:44 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for > cases with extra i

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Martin Storsjö
On Thu, 23 Apr 2020, Guo, Yejun wrote: -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Martin Storsj? Sent: Thursday, April 23, 2020 2:34 PM To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-23 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Martin Storsj? > Sent: Thursday, April 23, 2020 2:34 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for

[FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-23 Thread Martin Storsjö
This fixes tests on 32 bit x86 mingw with clang, which uses x87 fpu by default. In this setup, while the get_expected function is declared to return float, the compiler is (especially given the optimization flags set) free to keep the intermediate values (in this case, the return value from the in