Skip to content

Commit b5a80bc

Browse files
committed
Upload source.
1 parent ea7841d commit b5a80bc

File tree

8 files changed

+615
-0
lines changed

8 files changed

+615
-0
lines changed

FeatureDetector.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.31101.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FeatureDetector", "FeatureDetector\FeatureDetector.vcxproj", "{5AF4062D-386F-48AA-B824-2C10A4B1BA97}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Win32 = Debug|Win32
11+
Release|Win32 = Release|Win32
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{5AF4062D-386F-48AA-B824-2C10A4B1BA97}.Debug|Win32.ActiveCfg = Debug|Win32
15+
{5AF4062D-386F-48AA-B824-2C10A4B1BA97}.Debug|Win32.Build.0 = Debug|Win32
16+
{5AF4062D-386F-48AA-B824-2C10A4B1BA97}.Release|Win32.ActiveCfg = Release|Win32
17+
{5AF4062D-386F-48AA-B824-2C10A4B1BA97}.Release|Win32.Build.0 = Release|Win32
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<ItemGroup>
14+
<ClInclude Include="..\src\x86\cpu_x86.h" />
15+
</ItemGroup>
16+
<ItemGroup>
17+
<None Include="..\src\x86\cpu_x86_Linux.ipp" />
18+
<None Include="..\src\x86\cpu_x86_Windows.ipp" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<ClCompile Include="..\src\Main.cpp" />
22+
<ClCompile Include="..\src\x86\cpu_x86.cpp" />
23+
</ItemGroup>
24+
<PropertyGroup Label="Globals">
25+
<ProjectGuid>{5AF4062D-386F-48AA-B824-2C10A4B1BA97}</ProjectGuid>
26+
<Keyword>Win32Proj</Keyword>
27+
<RootNamespace>FeatureDetector</RootNamespace>
28+
</PropertyGroup>
29+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
31+
<ConfigurationType>Application</ConfigurationType>
32+
<UseDebugLibraries>true</UseDebugLibraries>
33+
<PlatformToolset>v120</PlatformToolset>
34+
<CharacterSet>Unicode</CharacterSet>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
37+
<ConfigurationType>Application</ConfigurationType>
38+
<UseDebugLibraries>false</UseDebugLibraries>
39+
<PlatformToolset>v120</PlatformToolset>
40+
<WholeProgramOptimization>true</WholeProgramOptimization>
41+
<CharacterSet>Unicode</CharacterSet>
42+
</PropertyGroup>
43+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
44+
<ImportGroup Label="ExtensionSettings">
45+
</ImportGroup>
46+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
47+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
48+
</ImportGroup>
49+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
50+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
51+
</ImportGroup>
52+
<PropertyGroup Label="UserMacros" />
53+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
54+
<LinkIncremental>true</LinkIncremental>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
57+
<LinkIncremental>false</LinkIncremental>
58+
</PropertyGroup>
59+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60+
<ClCompile>
61+
<PrecompiledHeader>
62+
</PrecompiledHeader>
63+
<WarningLevel>Level3</WarningLevel>
64+
<Optimization>Disabled</Optimization>
65+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
66+
<SDLCheck>true</SDLCheck>
67+
</ClCompile>
68+
<Link>
69+
<SubSystem>Console</SubSystem>
70+
<GenerateDebugInformation>true</GenerateDebugInformation>
71+
</Link>
72+
</ItemDefinitionGroup>
73+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
74+
<ClCompile>
75+
<WarningLevel>Level3</WarningLevel>
76+
<PrecompiledHeader>
77+
</PrecompiledHeader>
78+
<Optimization>MaxSpeed</Optimization>
79+
<FunctionLevelLinking>true</FunctionLevelLinking>
80+
<IntrinsicFunctions>true</IntrinsicFunctions>
81+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
82+
<SDLCheck>true</SDLCheck>
83+
</ClCompile>
84+
<Link>
85+
<SubSystem>Console</SubSystem>
86+
<GenerateDebugInformation>true</GenerateDebugInformation>
87+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
88+
<OptimizeReferences>true</OptimizeReferences>
89+
</Link>
90+
</ItemDefinitionGroup>
91+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
92+
<ImportGroup Label="ExtensionTargets">
93+
</ImportGroup>
94+
</Project>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
<Filter Include="Header Files\x86">
17+
<UniqueIdentifier>{7fdc0f8e-15b1-4062-a100-fb566c7e9c8a}</UniqueIdentifier>
18+
</Filter>
19+
</ItemGroup>
20+
<ItemGroup>
21+
<None Include="..\src\x86\cpu_x86_Windows.ipp">
22+
<Filter>Header Files\x86</Filter>
23+
</None>
24+
<None Include="..\src\x86\cpu_x86_Linux.ipp">
25+
<Filter>Header Files\x86</Filter>
26+
</None>
27+
</ItemGroup>
28+
<ItemGroup>
29+
<ClCompile Include="..\src\Main.cpp">
30+
<Filter>Source Files</Filter>
31+
</ClCompile>
32+
<ClCompile Include="..\src\x86\cpu_x86.cpp">
33+
<Filter>Header Files\x86</Filter>
34+
</ClCompile>
35+
</ItemGroup>
36+
<ItemGroup>
37+
<ClInclude Include="..\src\x86\cpu_x86.h">
38+
<Filter>Header Files\x86</Filter>
39+
</ClInclude>
40+
</ItemGroup>
41+
</Project>

src/Main.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Main.cpp
2+
*
3+
* Author : Alexander J. Yee
4+
* Date Created : 04/17/2015
5+
* Last Modified : 04/17/2015
6+
*
7+
*/
8+
9+
#include <iostream>
10+
using std::cout;
11+
using std::endl;
12+
13+
#include "x86/cpu_x86.h"
14+
using namespace FeatureDetector;
15+
16+
int main(){
17+
18+
cout << "CPU Vendor String: " << cpu_x86::get_vendor_string() << endl;
19+
cout << endl;
20+
21+
cpu_x86::print_host();
22+
23+
#if _WIN32
24+
system("pause");
25+
#endif
26+
}

0 commit comments

Comments
 (0)