History

avutil/softfloat: Add more tests for the normalization

Michael Niedermayer committed 11 years ago

Commit 904ea601 parent c7ce16e1 file · +10 −0Browse files

Unified · Split

libavutil/softfloat.c+10−0
@@ -93,6 +93,16 @@ int main(void){ · 92 unmodified lines
93 sf3 = av_add_sf(sf3, sf2);93 sf3 = av_add_sf(sf3, sf2);
94 printf("test3 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf3), sf3.mant, sf3.exp);94 printf("test3 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf3), sf3.mant, sf3.exp);
95 95
96 sf1 = av_int2sf(0xFFFFFFF0, 0);
97 printf("test4 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf1), sf1.mant, sf1.exp);
98 sf1 = av_int2sf(0x00000010, 0);
99 printf("test4 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf1), sf1.mant, sf1.exp);
100
101 sf1 = av_int2sf(0x1FFFFFFF, 0);
102 printf("test4 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf1), sf1.mant, sf1.exp);
103 sf1 = av_int2sf(0xE0000001, 0);
104 printf("test4 softfloat: %.10lf (0x%08x %d)\n", (double)av_sf2double(sf1), sf1.mant, sf1.exp);
105
96 return 0;106 return 0;
97 107
98}108}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t