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
79aa2ff1
Commit
79aa2ff1
authored
May 02, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/softfloat: use ldexp(), fixes undefined shift
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
c4be288f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
softfloat.h
libavutil/softfloat.h
+1
-2
No files found.
libavutil/softfloat.h
View file @
79aa2ff1
...
...
@@ -50,8 +50,7 @@ static const SoftFloat FLOAT_0999999 = { 0x3FFFFBCE, 0};
*/
static
inline
av_const
double
av_sf2double
(
SoftFloat
v
)
{
v
.
exp
-=
ONE_BITS
+
1
;
if
(
v
.
exp
>
0
)
return
(
double
)
v
.
mant
*
(
double
)(
1
<<
v
.
exp
);
else
return
(
double
)
v
.
mant
/
(
double
)(
1
<<
(
-
v
.
exp
));
return
ldexp
(
v
.
mant
,
v
.
exp
);
}
static
av_const
SoftFloat
av_normalize_sf
(
SoftFloat
a
){
...
...
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