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
158bf33e
Commit
158bf33e
authored
May 24, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify init_pow2table
Originally committed as revision 13365 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
40756c17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
cook.c
libavcodec/cook.c
+3
-7
No files found.
libavcodec/cook.c
View file @
158bf33e
...
...
@@ -185,13 +185,9 @@ static void dump_short_table(short* table, int size, int delimiter) {
/* table generator */
static
void
init_pow2table
(
COOKContext
*
q
){
int
i
;
q
->
rootpow2tab
[
63
]
=
q
->
pow2tab
[
63
]
=
1
.
0
;
for
(
i
=
1
;
i
<
64
;
i
++
){
q
->
pow2tab
[
63
+
i
]
=
(
float
)((
uint64_t
)
1
<<
i
);
q
->
pow2tab
[
63
-
i
]
=
1
.
0
/
(
float
)((
uint64_t
)
1
<<
i
);
q
->
rootpow2tab
[
63
+
i
]
=
sqrt
((
float
)((
uint64_t
)
1
<<
i
));
q
->
rootpow2tab
[
63
-
i
]
=
sqrt
(
1
.
0
/
(
float
)((
uint64_t
)
1
<<
i
));
for
(
i
=-
63
;
i
<
64
;
i
++
){
q
->
pow2tab
[
63
+
i
]
=
pow
(
2
,
i
);
q
->
rootpow2tab
[
63
+
i
]
=
sqrt
(
pow
(
2
,
i
));
}
}
...
...
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