Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6f4b83bc
Commit
6f4b83bc
authored
Sep 11, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Replace a loop with a simple computation.
parent
6a585fca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
hash.c
tools/widl/hash.c
+1
-7
No files found.
tools/widl/hash.c
View file @
6f4b83bc
...
...
@@ -605,13 +605,7 @@ unsigned long lhash_val_of_name_sys( syskind_t skind, LCID lcid, LPCSTR lpStr)
while
(
*
str
)
{
ULONG
newLoWord
=
0
,
i
;
/* Cumulative prime multiplication (*37) with modulo 2^32 wrap-around */
for
(
i
=
0
;
i
<
37
;
i
++
)
newLoWord
+=
nLoWord
;
nLoWord
=
newLoWord
+
pnLookup
[
*
str
>
0x7f
&&
nMask
?
*
str
+
0x80
:
*
str
];
nLoWord
=
37
*
nLoWord
+
pnLookup
[
*
str
>
0x7f
&&
nMask
?
*
str
+
0x80
:
*
str
];
str
++
;
}
/* Constrain to a prime modulo and sizeof(WORD) */
...
...
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