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
d3f912c1
Commit
d3f912c1
authored
Feb 04, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adler32: add comment for the SIMD code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
26585d2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
adler32.c
libavutil/adler32.c
+5
-0
No files found.
libavutil/adler32.c
View file @
d3f912c1
...
...
@@ -57,6 +57,11 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t * buf,
len2
-=
8
;
buf
+=
8
;
}
//We combine the 8 interleaved adler32 checksums without overflows
//Decreasing the number of iterations would allow below code to be
//simplified but would likely be slower due to the fewer iterations
//of the inner loop
s1
+=
((
a1
+
b1
)
*
0x1000100010001
)
>>
48
;
s2
+=
((((
a2
&
0xFFFF0000FFFF
)
+
(
b2
&
0xFFFF0000FFFF
)
+
((
a2
>>
16
)
&
0xFFFF0000FFFF
)
+
((
b2
>>
16
)
&
0xFFFF0000FFFF
))
*
0x800000008
)
>>
32
)
#if HAVE_BIGENDIAN
...
...
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