Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
df2a2117
Commit
df2a2117
authored
Nov 08, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/softfloat: Add test for av_cmp_sf()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
596dfe7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
softfloat.c
libavutil/softfloat.c
+13
-0
No files found.
libavutil/softfloat.c
View file @
df2a2117
...
...
@@ -109,6 +109,19 @@ 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
++
)
{
sf1
=
av_int2sf
(
i
,
0
);
for
(
j
=
0
;
j
<
100
;
j
++
)
{
int
c
;
sf2
=
av_int2sf
(
j
,
0
);
c
=
av_cmp_sf
(
sf1
,
sf2
);
if
(
FFDIFFSIGN
(
i
,
j
)
!=
c
&&
(
FFDIFFSIGN
(
i
,
j
)
^
c
)
<
0
)
{
printf
(
"av_cmp_sf failed at %d %d as %X
\n
"
,
i
,
j
,
c
);
}
}
}
for
(
i
=
0
;
i
<
4
*
36
;
i
++
){
int
s
,
c
;
double
errs
,
errc
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment