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
4ccccd6c
Commit
4ccccd6c
authored
Jul 01, 2015
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g2meet: use an unsigned type for the djb hash
parent
007e27d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
g2meet.c
libavcodec/g2meet.c
+1
-1
No files found.
libavcodec/g2meet.c
View file @
4ccccd6c
...
@@ -399,7 +399,7 @@ static inline int log2_ceil(uint32_t x)
...
@@ -399,7 +399,7 @@ static inline int log2_ceil(uint32_t x)
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
static
int
djb2_hash
(
uint32_t
key
)
static
int
djb2_hash
(
uint32_t
key
)
{
{
in
t
h
=
5381
;
uint32_
t
h
=
5381
;
h
=
(
h
*
33
)
^
((
key
>>
24
)
&
0xFF
);
// xxx: probably not needed at all
h
=
(
h
*
33
)
^
((
key
>>
24
)
&
0xFF
);
// xxx: probably not needed at all
h
=
(
h
*
33
)
^
((
key
>>
16
)
&
0xFF
);
h
=
(
h
*
33
)
^
((
key
>>
16
)
&
0xFF
);
...
...
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