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
904ea60a
Commit
904ea60a
authored
Jun 05, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/softfloat: Add more tests for the normalization
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c7ce16e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
softfloat.c
libavutil/softfloat.c
+10
-0
No files found.
libavutil/softfloat.c
View file @
904ea60a
...
...
@@ -93,6 +93,16 @@ int main(void){
sf3
=
av_add_sf
(
sf3
,
sf2
);
printf
(
"test3 softfloat: %.10lf (0x%08x %d)
\n
"
,
(
double
)
av_sf2double
(
sf3
),
sf3
.
mant
,
sf3
.
exp
);
sf1
=
av_int2sf
(
0xFFFFFFF0
,
0
);
printf
(
"test4 softfloat: %.10lf (0x%08x %d)
\n
"
,
(
double
)
av_sf2double
(
sf1
),
sf1
.
mant
,
sf1
.
exp
);
sf1
=
av_int2sf
(
0x00000010
,
0
);
printf
(
"test4 softfloat: %.10lf (0x%08x %d)
\n
"
,
(
double
)
av_sf2double
(
sf1
),
sf1
.
mant
,
sf1
.
exp
);
sf1
=
av_int2sf
(
0x1FFFFFFF
,
0
);
printf
(
"test4 softfloat: %.10lf (0x%08x %d)
\n
"
,
(
double
)
av_sf2double
(
sf1
),
sf1
.
mant
,
sf1
.
exp
);
sf1
=
av_int2sf
(
0xE0000001
,
0
);
printf
(
"test4 softfloat: %.10lf (0x%08x %d)
\n
"
,
(
double
)
av_sf2double
(
sf1
),
sf1
.
mant
,
sf1
.
exp
);
return
0
;
}
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