[FFmpeg-cvslog] avutil/softfloat: Include negative numbers in cmp/gt tests
Michael Niedermayer
git at videolan.org
Thu Nov 12 00:24:09 CET 2015
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov 8 15:04:05 2015 +0100| [72be96ac5522c83eb7f2b7c1cc1858013ac42488] | committer: Michael Niedermayer
avutil/softfloat: Include negative numbers in cmp/gt tests
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 955cdc43a35a850afe36537c2d8739c1991ac7ec)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72be96ac5522c83eb7f2b7c1cc1858013ac42488
---
libavutil/softfloat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
index bf74277..4bfbbb2 100644
--- a/libavutil/softfloat.c
+++ b/libavutil/softfloat.c
@@ -109,9 +109,9 @@ int main(void){
sf1 = av_div_sf(sf1, sf2);
printf("test6 softfloat: %.10lf (0x%08x %d) %d %d\n", (double)av_sf2double(sf1), sf1.mant, sf1.exp, i, j);
- for(i= 0; i<100; i++) {
+ for(i= -50; i<50; i++) {
sf1= av_int2sf(i, 0);
- for(j= 0; j<100; j++) {
+ for(j= -50; j<50; j++) {
int c;
sf2= av_int2sf(j, 0);
c = av_cmp_sf(sf1, sf2);
@@ -124,7 +124,7 @@ int main(void){
}
}
sf1 = av_int2sf(1, i);
- for(j = 0; j < 100; j++) {
+ for(j = -50; j < 50; j++) {
int c;
sf2 = av_int2sf(1, j);
c = av_cmp_sf(sf2, sf1);
More information about the ffmpeg-cvslog
mailing list