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
fd735e4b
Commit
fd735e4b
authored
May 04, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 8890 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e300ab4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
internal.h
libavutil/internal.h
+2
-3
No files found.
libavutil/internal.h
View file @
fd735e4b
...
@@ -190,14 +190,13 @@ static inline int ff_sqrt(int a)
...
@@ -190,14 +190,13 @@ static inline int ff_sqrt(int a)
{
{
int
ret
=
0
;
int
ret
=
0
;
int
s
;
int
s
;
int
ret_sq
=
0
;
if
(
a
<
128
)
return
ff_sqrt_tab
[
a
];
if
(
a
<
128
)
return
ff_sqrt_tab
[
a
];
for
(
s
=
15
;
s
>=
0
;
s
--
){
for
(
s
=
15
;
s
>=
0
;
s
--
){
int
b
=
ret_sq
+
(
1
<<
(
s
*
2
))
+
(
ret
<<
s
)
*
2
;
int
b
=
(
1
<<
(
s
*
2
))
+
(
ret
<<
s
)
*
2
;
if
(
b
<=
a
){
if
(
b
<=
a
){
ret_sq
=
b
;
a
-
=
b
;
ret
+=
1
<<
s
;
ret
+=
1
<<
s
;
}
}
}
}
...
...
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