mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avutil/softfloat: Add test for av_gt_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ecfb076141
commit
791ea23e57
1 changed files with 8 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ int main(void){
|
|||
if (FFDIFFSIGN(i,j) != c && (FFDIFFSIGN(i,j)^c)<0) {
|
||||
printf("av_cmp_sf failed at %d %d as %X\n", i, j, c);
|
||||
}
|
||||
c = av_gt_sf(sf1, sf2);
|
||||
if ((i>j) != c) {
|
||||
printf("av_gt_sf failed at %d %d as %X\n", i, j, c);
|
||||
}
|
||||
}
|
||||
sf1 = av_int2sf(1, i);
|
||||
for(j = 0; j < 100; j++) {
|
||||
|
|
@ -127,6 +131,10 @@ int main(void){
|
|||
if (FFDIFFSIGN(i,j) != c && (FFDIFFSIGN(i,j)^c) < 0) {
|
||||
printf("av_cmp_sf failed2 at %d %d as %X\n", i, j, c);
|
||||
}
|
||||
c = av_gt_sf(sf1, sf2);
|
||||
if ((i<j) != c) {
|
||||
printf("av_gt_sf failed2 at %d %d as %X\n", i, j, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue