Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
a3431ade
Commit
a3431ade
authored
Nov 07, 2022
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track zlib in FreeBSD
parent
23d6cebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
crc32.c
lib/libvgz/crc32.c
+6
-5
No files found.
lib/libvgz/crc32.c
View file @
a3431ade
...
...
@@ -108,17 +108,14 @@ local z_crc_t x2nmodp OF((z_off64_t n, unsigned k));
#endif
#if defined(W) && (!defined(ARMCRC32) || defined(DYNAMIC_CRC_TABLE))
local
z_word_t
byte_swap
OF
((
z_word_t
word
));
local
z_crc_t
crc_word
OF
((
z_word_t
data
));
local
z_word_t
crc_word_big
OF
((
z_word_t
data
));
/*
Swap the bytes in a z_word_t to convert between little and big endian. Any
self-respecting compiler will optimize this to a single machine byte-swap
instruction, if one is available. This assumes that word_t is either 32 bits
or 64 bits.
*/
local
z_word_t
byte_swap
OF
((
z_word_t
word
));
local
z_word_t
byte_swap
(
word
)
z_word_t
word
;
{
...
...
@@ -719,6 +716,8 @@ unsigned long ZEXPORT crc32_z(crc, buf, len)
least-significant byte of the word as the first byte of data, without any pre
or post conditioning. This is used to combine the CRCs of each braid.
*/
local
z_crc_t
crc_word
OF
((
z_word_t
data
));
local
z_crc_t
crc_word
(
data
)
z_word_t
data
;
{
...
...
@@ -728,6 +727,8 @@ local z_crc_t crc_word(data)
return
(
z_crc_t
)
data
;
}
local
z_word_t
crc_word_big
OF
((
z_word_t
data
));
local
z_word_t
crc_word_big
(
data
)
z_word_t
data
;
{
...
...
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