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
0c3eaeb1
Commit
0c3eaeb1
authored
May 17, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase alignment to uintmax_t to cater for 32bit userlands on
64bit processors.
parent
b703b6b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
common.h
bin/varnishd/common/common.h
+1
-1
No files found.
bin/varnishd/common/common.h
View file @
0c3eaeb1
...
@@ -130,7 +130,7 @@ void VSM_common_ageupdate(const struct vsm_sc *sc);
...
@@ -130,7 +130,7 @@ void VSM_common_ageupdate(const struct vsm_sc *sc);
* Pointer aligment magic
* Pointer aligment magic
*/
*/
#define PALGN (sizeof(
void *
) - 1)
/* size of alignment */
#define PALGN (sizeof(
uintmax_t
) - 1)
/* size of alignment */
#define PAOK(p) (((uintptr_t)(p) & PALGN) == 0)
/* is aligned */
#define PAOK(p) (((uintptr_t)(p) & PALGN) == 0)
/* is aligned */
#define PRNDDN(p) ((uintptr_t)(p) & ~PALGN)
/* Round down */
#define PRNDDN(p) ((uintptr_t)(p) & ~PALGN)
/* Round down */
#define PRNDUP(p) (((uintptr_t)(p) + PALGN) & ~PALGN)
/* Round up */
#define PRNDUP(p) (((uintptr_t)(p) + PALGN) & ~PALGN)
/* Round up */
...
...
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