Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6470b21f
Commit
6470b21f
authored
Mar 10, 2018
by
Otmar Ertl
Browse files
replaced tab by spaces
parent
84b28120
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
6470b21f
...
@@ -401,11 +401,11 @@ uint64_t MurmurHash64A (const void * key, int len, unsigned int seed) {
...
@@ -401,11 +401,11 @@ uint64_t MurmurHash64A (const void * key, int len, unsigned int seed) {
uint64_t
k
;
uint64_t
k
;
#if (BYTE_ORDER == LITTLE_ENDIAN)
#if (BYTE_ORDER == LITTLE_ENDIAN)
#ifdef USE_ALIGNED_ACCESS
#ifdef USE_ALIGNED_ACCESS
memcpy
(
&
k
,
data
,
sizeof
(
uint64_t
));
memcpy
(
&
k
,
data
,
sizeof
(
uint64_t
));
#else
#else
k
=
*
((
uint64_t
*
)
data
);
k
=
*
((
uint64_t
*
)
data
);
#endif
#endif
#else
#else
k
=
(
uint64_t
)
data
[
0
];
k
=
(
uint64_t
)
data
[
0
];
k
|=
(
uint64_t
)
data
[
1
]
<<
8
;
k
|=
(
uint64_t
)
data
[
1
]
<<
8
;
...
...
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