Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
a9fd1348
Commit
a9fd1348
authored
May 29, 2011
by
davis@blarg-a324a5a3e.localnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to avoid a compiler error in visual studio 2010
parent
6335f110
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
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