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