Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8e0ef249
Commit
8e0ef249
authored
Feb 08, 2012
by
antirez
Browse files
more ziplist.c endianess fixes
parent
56538477
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ziplist.c
View file @
8e0ef249
...
...
@@ -92,8 +92,8 @@
#define ZIPLIST_LENGTH(zl) (*((uint16_t*)((zl)+sizeof(uint32_t)*2)))
#define ZIPLIST_HEADER_SIZE (sizeof(uint32_t)*2+sizeof(uint16_t))
#define ZIPLIST_ENTRY_HEAD(zl) ((zl)+ZIPLIST_HEADER_SIZE)
#define ZIPLIST_ENTRY_TAIL(zl) ((zl)+ZIPLIST_TAIL_OFFSET(zl))
#define ZIPLIST_ENTRY_END(zl) ((zl)+ZIPLIST_BYTES(zl)-1)
#define ZIPLIST_ENTRY_TAIL(zl) ((zl)+
intrev32ifbe(
ZIPLIST_TAIL_OFFSET(zl))
)
#define ZIPLIST_ENTRY_END(zl) ((zl)+
intrev32ifbe(
ZIPLIST_BYTES(zl)
)
-1)
/* We know a positive increment can only be 1 because entries can only be
* pushed one at a time. */
...
...
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