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
be60dc21
Commit
be60dc21
authored
Dec 15, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/avsscanf: do not use long double functions
Not needed when only double is used.
parent
011c9112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
avsscanf.c
libavutil/avsscanf.c
+6
-6
No files found.
libavutil/avsscanf.c
View file @
be60dc21
...
...
@@ -454,8 +454,8 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
/* Calculate bias term to force rounding, move out lower bits */
if
(
bits
<
DBL_MANT_DIG
)
{
bias
=
copysign
l
(
scalbn
(
1
,
2
*
DBL_MANT_DIG
-
bits
-
1
),
y
);
frac
=
fmod
l
(
y
,
scalbn
(
1
,
DBL_MANT_DIG
-
bits
));
bias
=
copysign
(
scalbn
(
1
,
2
*
DBL_MANT_DIG
-
bits
-
1
),
y
);
frac
=
fmod
(
y
,
scalbn
(
1
,
DBL_MANT_DIG
-
bits
));
y
-=
frac
;
y
+=
bias
;
}
...
...
@@ -473,7 +473,7 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
else
frac
+=
0
.
75
*
sign
;
}
if
(
DBL_MANT_DIG
-
bits
>=
2
&&
!
fmod
l
(
frac
,
1
))
if
(
DBL_MANT_DIG
-
bits
>=
2
&&
!
fmod
(
frac
,
1
))
frac
++
;
}
...
...
@@ -491,7 +491,7 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
errno
=
ERANGE
;
}
return
scalbn
l
(
y
,
e2
);
return
scalbn
(
y
,
e2
);
}
static
double
hexfloat
(
FFFILE
*
f
,
int
bits
,
int
emin
,
int
sign
,
int
pok
)
...
...
@@ -595,7 +595,7 @@ static double hexfloat(FFFILE *f, int bits, int emin, int sign, int pok)
}
if
(
bits
<
DBL_MANT_DIG
)
bias
=
copysign
l
(
scalbn
(
1
,
32
+
DBL_MANT_DIG
-
bits
-
1
),
sign
);
bias
=
copysign
(
scalbn
(
1
,
32
+
DBL_MANT_DIG
-
bits
-
1
),
sign
);
if
(
bits
<
32
&&
y
&&
!
(
x
&
1
))
x
++
,
y
=
0
;
...
...
@@ -604,7 +604,7 @@ static double hexfloat(FFFILE *f, int bits, int emin, int sign, int pok)
if
(
!
y
)
errno
=
ERANGE
;
return
scalbn
l
(
y
,
e2
);
return
scalbn
(
y
,
e2
);
}
static
double
fffloatscan
(
FFFILE
*
f
,
int
prec
,
int
pok
)
...
...
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