2
Copyright (C) 2011 Nicolas Bourdaud <nicolas.bourdaud@epfl.ch>
4
This file is part of the rtfilter library
6
The rtfilter library is free software: you can redistribute it and/or
7
modify it under the terms of the version 3 of the GNU Lesser General
8
Public License as published by the Free Software Foundation.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
27
unsigned int eax, ebx, ecx, edx;
28
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (edx & bit_SSE))
34
int cputest_sse2(void)
36
unsigned int eax, ebx, ecx, edx;
37
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (edx & bit_SSE))
43
int cputest_sse3(void)
45
unsigned int eax, ebx, ecx, edx;
46
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (edx & bit_SSE))
51
#else /* HAVE_CPUID */
64
int cputest_sse2(void)
74
int cputest_sse3(void)
83
#endif /* HAVE_CPUID */
86
#endif /* PROBESIMD_H */