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
a9fd1348
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "5d75d837efc9315c19f538f2b2130baf5fbc242a"
Commit
a9fd1348
authored
May 28, 2011
by
davis@blarg-a324a5a3e.localnet
Browse files
Minor change to avoid a compiler error in visual studio 2010
parent
6335f110
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
dlib/test/hash.cpp
dlib/test/hash.cpp
+26
-26
No files found.
dlib/test/hash.cpp
View file @
a9fd1348
...
...
@@ -118,34 +118,34 @@ namespace
m
[
'a'
]
=
'A'
;
m
[
't'
]
=
'T'
;
dlog
<<
LINFO
<<
"hash(str1): "
<<
hash
(
str1
);
dlog
<<
LINFO
<<
"hash(v): "
<<
hash
(
v
);
dlog
<<
LINFO
<<
"hash(v2): "
<<
hash
(
v2
);
dlog
<<
LINFO
<<
"hash(m): "
<<
hash
(
m
);
dlog
<<
LINFO
<<
"hash(mat): "
<<
hash
(
mat
);
dlog
<<
LINFO
<<
"hash(mat2): "
<<
hash
(
mat2
);
DLIB_TEST
(
hash
(
str1
)
==
0x3ffe6bf6
);
DLIB_TEST
(
hash
(
v
)
==
0xf1af2ca6
);
DLIB_TEST
(
hash
(
v2
)
==
0x63852afc
);
DLIB_TEST
(
hash
(
m
)
==
0xaacc3f6f
);
DLIB_TEST
(
hash
(
mat
)
==
0x3e349da5
);
DLIB_TEST
(
hash
(
mat2
)
==
0x3a95dc52
);
dlog
<<
LINFO
<<
"hash(str1): "
<<
dlib
::
hash
(
str1
);
dlog
<<
LINFO
<<
"hash(v): "
<<
dlib
::
hash
(
v
);
dlog
<<
LINFO
<<
"hash(v2): "
<<
dlib
::
hash
(
v2
);
dlog
<<
LINFO
<<
"hash(m): "
<<
dlib
::
hash
(
m
);
dlog
<<
LINFO
<<
"hash(mat): "
<<
dlib
::
hash
(
mat
);
dlog
<<
LINFO
<<
"hash(mat2): "
<<
dlib
::
hash
(
mat2
);
DLIB_TEST
(
dlib
::
hash
(
str1
)
==
0x3ffe6bf6
);
DLIB_TEST
(
dlib
::
hash
(
v
)
==
0xf1af2ca6
);
DLIB_TEST
(
dlib
::
hash
(
v2
)
==
0x63852afc
);
DLIB_TEST
(
dlib
::
hash
(
m
)
==
0xaacc3f6f
);
DLIB_TEST
(
dlib
::
hash
(
mat
)
==
0x3e349da5
);
DLIB_TEST
(
dlib
::
hash
(
mat2
)
==
0x3a95dc52
);
DLIB_TEST
(
murmur_hash3
(
&
str1
[
0
],
str1
.
size
(),
0
)
==
0x3ffe6bf6
);
dlog
<<
LINFO
<<
"hash(str1,1): "
<<
hash
(
str1
,
1
);
dlog
<<
LINFO
<<
"hash(v,3): "
<<
hash
(
v
,
3
);
dlog
<<
LINFO
<<
"hash(v2,3): "
<<
hash
(
v2
,
3
);
dlog
<<
LINFO
<<
"hash(m,4): "
<<
hash
(
m
,
4
);
dlog
<<
LINFO
<<
"hash(mat,5): "
<<
hash
(
mat
,
5
);
dlog
<<
LINFO
<<
"hash(mat2,6): "
<<
hash
(
mat2
,
6
);
DLIB_TEST
(
hash
(
str1
,
1
)
==
0xb17cea93
);
DLIB_TEST
(
hash
(
v
,
3
)
==
0x7ec9284c
);
DLIB_TEST
(
hash
(
v2
,
3
)
==
0xb2ce147f
);
DLIB_TEST
(
hash
(
m
,
4
)
==
0xfa5e7ac2
);
DLIB_TEST
(
hash
(
mat
,
5
)
==
0x8de27259
);
DLIB_TEST
(
hash
(
mat2
,
6
)
==
0xb8aa7714
);
dlog
<<
LINFO
<<
"hash(str1,1): "
<<
dlib
::
hash
(
str1
,
1
);
dlog
<<
LINFO
<<
"hash(v,3): "
<<
dlib
::
hash
(
v
,
3
);
dlog
<<
LINFO
<<
"hash(v2,3): "
<<
dlib
::
hash
(
v2
,
3
);
dlog
<<
LINFO
<<
"hash(m,4): "
<<
dlib
::
hash
(
m
,
4
);
dlog
<<
LINFO
<<
"hash(mat,5): "
<<
dlib
::
hash
(
mat
,
5
);
dlog
<<
LINFO
<<
"hash(mat2,6): "
<<
dlib
::
hash
(
mat2
,
6
);
DLIB_TEST
(
dlib
::
hash
(
str1
,
1
)
==
0xb17cea93
);
DLIB_TEST
(
dlib
::
hash
(
v
,
3
)
==
0x7ec9284c
);
DLIB_TEST
(
dlib
::
hash
(
v2
,
3
)
==
0xb2ce147f
);
DLIB_TEST
(
dlib
::
hash
(
m
,
4
)
==
0xfa5e7ac2
);
DLIB_TEST
(
dlib
::
hash
(
mat
,
5
)
==
0x8de27259
);
DLIB_TEST
(
dlib
::
hash
(
mat2
,
6
)
==
0xb8aa7714
);
DLIB_TEST
(
murmur_hash3
(
&
str1
[
0
],
str1
.
size
(),
1
)
==
0xb17cea93
);
}
...
...
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