Skip to content

Commit

Permalink
Project reconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
ron4fun committed Jun 21, 2018
1 parent c98ebec commit 8af405a
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 74 deletions.
1 change: 0 additions & 1 deletion Base/BigInteger.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "BigInteger.h"
#include "..\Security\SecureRandom.h"
#include "..\Utils\NumberStyles.h"
Expand Down
21 changes: 1 addition & 20 deletions BigInteger Application.cpp
Expand Up @@ -13,25 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include <iostream>
#include <string>
#include <cstdint>
#include "BigIntegerWrapper.h"
//#include "Unittest\FullTest.h"
#include "Unittest\FullTest.h"

using namespace std;

int main()
{
BigIntegerWrapper two("2");
BigIntegerWrapper three("3");
BigIntegerWrapper other("-1000");
BigIntegerWrapper Zero("0");
cout << two.GetHashCode() << " " << other.GetHashCode() << endl;
cout << three.DivideAndRemainder(BigIntegerWrapper("100"))[1].ToString() << endl;
cout << two.Multiply(Zero).GetHashCode() << endl;

return 0;
}

28 changes: 28 additions & 0 deletions BigInteger Application.sln
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BigInteger Application", "BigInteger Application.vcxproj", "{D51AB871-FC15-4EC8-AABA-000758274186}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D51AB871-FC15-4EC8-AABA-000758274186}.Debug|x64.ActiveCfg = Debug|x64
{D51AB871-FC15-4EC8-AABA-000758274186}.Debug|x64.Build.0 = Debug|x64
{D51AB871-FC15-4EC8-AABA-000758274186}.Debug|x86.ActiveCfg = Debug|Win32
{D51AB871-FC15-4EC8-AABA-000758274186}.Debug|x86.Build.0 = Debug|Win32
{D51AB871-FC15-4EC8-AABA-000758274186}.Release|x64.ActiveCfg = Release|x64
{D51AB871-FC15-4EC8-AABA-000758274186}.Release|x64.Build.0 = Release|x64
{D51AB871-FC15-4EC8-AABA-000758274186}.Release|x86.ActiveCfg = Release|Win32
{D51AB871-FC15-4EC8-AABA-000758274186}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
22 changes: 8 additions & 14 deletions BigInteger Application.vcxproj
Expand Up @@ -29,27 +29,27 @@
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -83,7 +83,7 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -96,7 +96,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -110,7 +110,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
Expand All @@ -127,7 +127,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
Expand Down Expand Up @@ -172,12 +172,6 @@
<ClCompile Include="Rng\RandomNumberGenerator.cpp" />
<ClCompile Include="Security\Random.cpp" />
<ClCompile Include="Security\SecureRandom.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 0 additions & 3 deletions BigInteger Application.vcxproj.filters
Expand Up @@ -107,9 +107,6 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Randoms\PcgRandomMinimal.cpp">
<Filter>Source Files\Randoms</Filter>
</ClCompile>
Expand Down
1 change: 0 additions & 1 deletion BigIntegerWrapper.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "BigIntegerWrapper.h"
#include "Base/BigInteger.h"

Expand Down
1 change: 0 additions & 1 deletion Randoms/PcgRandomMinimal.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "PcgRandomMinimal.h"


Expand Down
1 change: 0 additions & 1 deletion Rng/RandomNumberGenerator.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "RandomNumberGenerator.h"
#include "PCGRandomNumberGenerator.h"

Expand Down
1 change: 0 additions & 1 deletion Security/Random.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "Random.h"

vector<int32_t> Random::SeedArray = vector<int32_t>();
Expand Down
1 change: 0 additions & 1 deletion Security/SecureRandom.cpp
Expand Up @@ -13,7 +13,6 @@

// ////////////////////////////////////////////////////// ///////////////

#include "stdafx.h"
#include "SecureRandom.h"
#include "../Utils/HlpBits.h"
#include "../Rng/CryptoApiRandomGenerator.h"
Expand Down
8 changes: 0 additions & 8 deletions stdafx.cpp

This file was deleted.

15 changes: 0 additions & 15 deletions stdafx.h

This file was deleted.

8 changes: 0 additions & 8 deletions targetver.h

This file was deleted.

0 comments on commit 8af405a

Please sign in to comment.