1 /* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "mozilla/SSE.h"
13 #endif // defined(XP_WIN)
15 printf("CPUID detection present: %s\n",
16 #ifdef MOZILLA_SSE_HAVE_CPUID_DETECTION
23 #ifdef MOZILLA_COMPILE_WITH_MMX
24 # define COMPILE_MMX_STRING "Y"
26 # define COMPILE_MMX_STRING "-"
28 #ifdef MOZILLA_PRESUME_MMX
29 # define PRESUME_MMX_STRING "Y"
31 # define PRESUME_MMX_STRING "-"
34 #ifdef MOZILLA_COMPILE_WITH_SSE
35 # define COMPILE_SSE_STRING "Y"
37 # define COMPILE_SSE_STRING "-"
39 #ifdef MOZILLA_PRESUME_SSE
40 # define PRESUME_SSE_STRING "Y"
42 # define PRESUME_SSE_STRING "-"
45 #ifdef MOZILLA_COMPILE_WITH_SSE2
46 # define COMPILE_SSE2_STRING "Y"
48 # define COMPILE_SSE2_STRING "-"
50 #ifdef MOZILLA_PRESUME_SSE2
51 # define PRESUME_SSE2_STRING "Y"
53 # define PRESUME_SSE2_STRING "-"
56 #ifdef MOZILLA_COMPILE_WITH_SSE3
57 # define COMPILE_SSE3_STRING "Y"
59 # define COMPILE_SSE3_STRING "-"
61 #ifdef MOZILLA_PRESUME_SSE3
62 # define PRESUME_SSE3_STRING "Y"
64 # define PRESUME_SSE3_STRING "-"
67 #ifdef MOZILLA_COMPILE_WITH_SSSE3
68 # define COMPILE_SSSE3_STRING "Y"
70 # define COMPILE_SSSE3_STRING "-"
72 #ifdef MOZILLA_PRESUME_SSSE3
73 # define PRESUME_SSSE3_STRING "Y"
75 # define PRESUME_SSSE3_STRING "-"
78 #ifdef MOZILLA_COMPILE_WITH_SSE4A
79 # define COMPILE_SSE4A_STRING "Y"
81 # define COMPILE_SSE4A_STRING "-"
83 #ifdef MOZILLA_PRESUME_SSE4A
84 # define PRESUME_SSE4A_STRING "Y"
86 # define PRESUME_SSE4A_STRING "-"
89 #ifdef MOZILLA_COMPILE_WITH_SSE4_1
90 # define COMPILE_SSE4_1_STRING "Y"
92 # define COMPILE_SSE4_1_STRING "-"
94 #ifdef MOZILLA_PRESUME_SSE4_1
95 # define PRESUME_SSE4_1_STRING "Y"
97 # define PRESUME_SSE4_1_STRING "-"
100 #ifdef MOZILLA_COMPILE_WITH_SSE4_2
101 # define COMPILE_SSE4_2_STRING "Y"
103 # define COMPILE_SSE4_2_STRING "-"
105 #ifdef MOZILLA_PRESUME_SSE4_2
106 # define PRESUME_SSE4_2_STRING "Y"
108 # define PRESUME_SSE4_2_STRING "-"
111 printf("Feature Presume Compile Support Use\n");
112 #define SHOW_INFO(featurelc_, featureuc_) \
113 printf("%7s %1s %1s %1s\n", #featurelc_, \
114 PRESUME_##featureuc_##_STRING, COMPILE_##featureuc_##_STRING, \
115 (mozilla::supports_##featurelc_() ? "Y" : "-"));
118 SHOW_INFO(sse2
, SSE2
)
119 SHOW_INFO(sse3
, SSE3
)
120 SHOW_INFO(ssse3
, SSSE3
)
121 SHOW_INFO(sse4a
, SSE4A
)
122 SHOW_INFO(sse4_1
, SSE4_1
)
123 SHOW_INFO(sse4_2
, SSE4_2
)