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
OpenDAS
dlib
Commits
1fd054ba
Commit
1fd054ba
authored
May 04, 2019
by
Davis King
Browse files
Suppress compiler warnings
parent
5623810b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
dlib/general_hash/murmur_hash3.h
dlib/general_hash/murmur_hash3.h
+18
-18
No files found.
dlib/general_hash/murmur_hash3.h
View file @
1fd054ba
...
@@ -214,9 +214,9 @@ namespace dlib
...
@@ -214,9 +214,9 @@ namespace dlib
switch
(
len
&
3
)
switch
(
len
&
3
)
{
{
case
3
:
k1
^=
tail
[
2
]
<<
16
;
case
3
:
k1
^=
tail
[
2
]
<<
16
;
// fall through
[[
fallthrough
]];
// fall through
case
2
:
k1
^=
tail
[
1
]
<<
8
;
case
2
:
k1
^=
tail
[
1
]
<<
8
;
// fall through
[[
fallthrough
]];
// fall through
case
1
:
k1
^=
tail
[
0
];
case
1
:
k1
^=
tail
[
0
];
k1
*=
c1
;
k1
=
DLIB_ROTL32
(
k1
,
15
);
k1
*=
c2
;
h1
^=
k1
;
k1
*=
c1
;
k1
=
DLIB_ROTL32
(
k1
,
15
);
k1
*=
c2
;
h1
^=
k1
;
};
};
...
@@ -386,24 +386,24 @@ namespace dlib
...
@@ -386,24 +386,24 @@ namespace dlib
switch
(
len
&
15
)
switch
(
len
&
15
)
{
{
case
15
:
k2
^=
uint64
(
tail
[
14
])
<<
48
;
// fall through
case
15
:
k2
^=
uint64
(
tail
[
14
])
<<
48
;
[[
fallthrough
]];
// fall through
case
14
:
k2
^=
uint64
(
tail
[
13
])
<<
40
;
// fall through
case
14
:
k2
^=
uint64
(
tail
[
13
])
<<
40
;
[[
fallthrough
]];
// fall through
case
13
:
k2
^=
uint64
(
tail
[
12
])
<<
32
;
// fall through
case
13
:
k2
^=
uint64
(
tail
[
12
])
<<
32
;
[[
fallthrough
]];
// fall through
case
12
:
k2
^=
uint64
(
tail
[
11
])
<<
24
;
// fall through
case
12
:
k2
^=
uint64
(
tail
[
11
])
<<
24
;
[[
fallthrough
]];
// fall through
case
11
:
k2
^=
uint64
(
tail
[
10
])
<<
16
;
// fall through
case
11
:
k2
^=
uint64
(
tail
[
10
])
<<
16
;
[[
fallthrough
]];
// fall through
case
10
:
k2
^=
uint64
(
tail
[
9
])
<<
8
;
// fall through
case
10
:
k2
^=
uint64
(
tail
[
9
])
<<
8
;
[[
fallthrough
]];
// fall through
case
9
:
k2
^=
uint64
(
tail
[
8
])
<<
0
;
case
9
:
k2
^=
uint64
(
tail
[
8
])
<<
0
;
k2
*=
c2
;
k2
=
DLIB_ROTL64
(
k2
,
33
);
k2
*=
c1
;
h2
^=
k2
;
// fall through
k2
*=
c2
;
k2
=
DLIB_ROTL64
(
k2
,
33
);
k2
*=
c1
;
h2
^=
k2
;
[[
fallthrough
]];
// fall through
case
8
:
k1
^=
uint64
(
tail
[
7
])
<<
56
;
// fall through
case
8
:
k1
^=
uint64
(
tail
[
7
])
<<
56
;
[[
fallthrough
]];
// fall through
case
7
:
k1
^=
uint64
(
tail
[
6
])
<<
48
;
// fall through
case
7
:
k1
^=
uint64
(
tail
[
6
])
<<
48
;
[[
fallthrough
]];
// fall through
case
6
:
k1
^=
uint64
(
tail
[
5
])
<<
40
;
// fall through
case
6
:
k1
^=
uint64
(
tail
[
5
])
<<
40
;
[[
fallthrough
]];
// fall through
case
5
:
k1
^=
uint64
(
tail
[
4
])
<<
32
;
// fall through
case
5
:
k1
^=
uint64
(
tail
[
4
])
<<
32
;
[[
fallthrough
]];
// fall through
case
4
:
k1
^=
uint64
(
tail
[
3
])
<<
24
;
// fall through
case
4
:
k1
^=
uint64
(
tail
[
3
])
<<
24
;
[[
fallthrough
]];
// fall through
case
3
:
k1
^=
uint64
(
tail
[
2
])
<<
16
;
// fall through
case
3
:
k1
^=
uint64
(
tail
[
2
])
<<
16
;
[[
fallthrough
]];
// fall through
case
2
:
k1
^=
uint64
(
tail
[
1
])
<<
8
;
// fall through
case
2
:
k1
^=
uint64
(
tail
[
1
])
<<
8
;
[[
fallthrough
]];
// fall through
case
1
:
k1
^=
uint64
(
tail
[
0
])
<<
0
;
case
1
:
k1
^=
uint64
(
tail
[
0
])
<<
0
;
k1
*=
c1
;
k1
=
DLIB_ROTL64
(
k1
,
31
);
k1
*=
c2
;
h1
^=
k1
;
// fall through
k1
*=
c1
;
k1
=
DLIB_ROTL64
(
k1
,
31
);
k1
*=
c2
;
h1
^=
k1
;
};
};
//----------
//----------
...
...
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