EgtGeneral :

- in versione Release X64 abilitato AVX2.
This commit is contained in:
Dario Sassi
2019-02-28 10:24:31 +00:00
parent d1b00448ba
commit d753d718f5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ copy $(TargetPath) \EgtProg\Dll32</Command>
<PreprocessorDefinitions>WIN32;I_AM_EGN;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<OmitFramePointers>true</OmitFramePointers>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
+3
View File
@@ -87,6 +87,8 @@ GetOsInfo( string& sOsInfo)
osvi.dwOSVersionInfoSize = sizeof( OSVERSIONINFOEX) ;
// Se non recupero le informazioni, provo con forma semplificata
#pragma warning( push)
#pragma warning( disable : 4996)
bool bOsVersionInfoEx = ( GetVersionEx( (OSVERSIONINFO *) &osvi) != FALSE) ;
if ( ! bOsVersionInfoEx) {
osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO) ;
@@ -96,6 +98,7 @@ GetOsInfo( string& sOsInfo)
return false ;
}
}
#pragma warning( pop)
// Chiamo GetNativeSystemInfo se supportato o GetSystemInfo altrimenti
PGNSI pGNSI = (PGNSI) GetProcAddress( GetModuleHandle( TEXT( "kernel32.dll")), "GetNativeSystemInfo") ;