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
0217fb5a
Commit
0217fb5a
authored
Jan 17, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A minor change to avoid compiler warnings in visual studio.
parent
97770d38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
simd_check.h
dlib/simd/simd_check.h
+7
-7
No files found.
dlib/simd/simd_check.h
View file @
0217fb5a
...
...
@@ -142,13 +142,13 @@
#endif
inline
bool
cpu_has_sse2_instructions
()
{
return
cpuid
(
1
)[
3
]
&
(
1
<<
26
);
}
inline
bool
cpu_has_sse3_instructions
()
{
return
cpuid
(
1
)[
2
]
&
(
1
<<
0
);
}
inline
bool
cpu_has_sse41_instructions
()
{
return
cpuid
(
1
)[
2
]
&
(
1
<<
19
);
}
inline
bool
cpu_has_sse42_instructions
()
{
return
cpuid
(
1
)[
2
]
&
(
1
<<
20
);
}
inline
bool
cpu_has_avx_instructions
()
{
return
cpuid
(
1
)[
2
]
&
(
1
<<
28
);
}
inline
bool
cpu_has_avx2_instructions
()
{
return
cpuid
(
7
)[
1
]
&
(
1
<<
5
);
}
inline
bool
cpu_has_avx512_instructions
()
{
return
cpuid
(
7
)[
1
]
&
(
1
<<
16
);
}
inline
bool
cpu_has_sse2_instructions
()
{
return
0
!=
(
cpuid
(
1
)[
3
]
&
(
1
<<
26
)
);
}
inline
bool
cpu_has_sse3_instructions
()
{
return
0
!=
(
cpuid
(
1
)[
2
]
&
(
1
<<
0
)
);
}
inline
bool
cpu_has_sse41_instructions
()
{
return
0
!=
(
cpuid
(
1
)[
2
]
&
(
1
<<
19
)
);
}
inline
bool
cpu_has_sse42_instructions
()
{
return
0
!=
(
cpuid
(
1
)[
2
]
&
(
1
<<
20
)
);
}
inline
bool
cpu_has_avx_instructions
()
{
return
0
!=
(
cpuid
(
1
)[
2
]
&
(
1
<<
28
)
);
}
inline
bool
cpu_has_avx2_instructions
()
{
return
0
!=
(
cpuid
(
7
)[
1
]
&
(
1
<<
5
)
);
}
inline
bool
cpu_has_avx512_instructions
()
{
return
0
!=
(
cpuid
(
7
)[
1
]
&
(
1
<<
16
)
);
}
inline
void
warn_about_unavailable_but_used_cpu_instructions
()
{
...
...
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