Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
ecb66d2a
Unverified
Commit
ecb66d2a
authored
Oct 02, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename union fh members to match lowercase hash names
parent
3f236b4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
fellow_hash.c
src/fellow_hash.c
+6
-6
fellow_hash.h
src/fellow_hash.h
+3
-3
No files found.
src/fellow_hash.c
View file @
ecb66d2a
...
...
@@ -72,8 +72,8 @@ fh_assert_lengths(void)
assert
(
fh_len
[
FH_SHA256
]
==
sizeof
fhh
.
sha256
);
#ifdef HAVE_XXHASH_H
assert
(
fh_len
[
FH_XXH32
]
==
sizeof
fhh
.
xxh32
);
assert
(
fh_len
[
FH_XXH3_64
]
==
sizeof
fhh
.
xxh64
);
assert
(
fh_len
[
FH_XXH3_128
]
==
sizeof
fhh
.
xxh128
);
assert
(
fh_len
[
FH_XXH3_64
]
==
sizeof
fhh
.
xxh
3_
64
);
assert
(
fh_len
[
FH_XXH3_128
]
==
sizeof
fhh
.
xxh
3_
128
);
#endif
}
...
...
@@ -98,10 +98,10 @@ fh(uint8_t fht, union fh *fhh, const void *p, size_t l)
FH_H_XXH32
(
fhh
->
xxh32
,
p
,
l
);
break
;
case
FH_XXH3_64
:
FH_H_XXH3_64
(
fhh
->
xxh64
,
p
,
l
);
FH_H_XXH3_64
(
fhh
->
xxh
3_
64
,
p
,
l
);
break
;
case
FH_XXH3_128
:
FH_H_XXH3_128
(
fhh
->
xxh128
,
p
,
l
);
FH_H_XXH3_128
(
fhh
->
xxh
3_
128
,
p
,
l
);
break
;
#else
case
FH_XXH32
:
...
...
@@ -137,9 +137,9 @@ fhcmp(uint8_t fht, const union fh *fhh, const void *p, size_t l)
case
FH_XXH32
:
return
(
FH_C_XXH32
(
fhh
->
xxh32
,
p
,
l
));
case
FH_XXH3_64
:
return
(
FH_C_XXH3_64
(
fhh
->
xxh64
,
p
,
l
));
return
(
FH_C_XXH3_64
(
fhh
->
xxh
3_
64
,
p
,
l
));
case
FH_XXH3_128
:
return
(
FH_C_XXH3_128
(
fhh
->
xxh128
,
p
,
l
));
return
(
FH_C_XXH3_128
(
fhh
->
xxh
3_
128
,
p
,
l
));
#else
case
FH_XXH32
:
case
FH_XXH3_64
:
...
...
src/fellow_hash.h
View file @
ecb66d2a
...
...
@@ -44,10 +44,10 @@ extern const char * const fh_name[FH_LIM];
*/
union
fh
{
uint8_t
sha256
[
32
];
uint8_t
sha256
[
32
];
uint32_t
xxh32
;
uint64_t
xxh64
;
uint8_t
xxh
128
[
16
];
uint64_t
xxh
3_
64
;
uint8_t
xxh3_
128
[
16
];
};
void
fh
(
uint8_t
fht
,
union
fh
*
fh
,
const
void
*
p
,
size_t
l
);
...
...
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