From 55c896f74e3553131d7b5b8cad239cb90e4d1a52 Mon Sep 17 00:00:00 2001 From: Pavel P Date: Wed, 14 Feb 2024 22:59:35 +0200 Subject: [PATCH] Fix msvc build, clean up project config --- vs/bitpack_avx2.c | 3 +- vs/bitunpack_avx2.c | 3 +- vs/bitutil_avx2.c | 4 +-- vs/transpose_avx2.c | 3 +- vs/vp4c_avx2.c | 3 +- vs/vp4d_avx2.c | 3 +- vs/vs2022/TurboPFor.vcxproj | 71 +++++++++---------------------------- vs/vs2022/icapp.vcxproj | 20 +++++------ 8 files changed, 36 insertions(+), 74 deletions(-) diff --git a/vs/bitpack_avx2.c b/vs/bitpack_avx2.c index 1a160add..5af01e8c 100644 --- a/vs/bitpack_avx2.c +++ b/vs/bitpack_avx2.c @@ -1 +1,2 @@ -#include "lib\bitpack.c" +#define __AVX2__ 1 +#include "../lib/bitpack.c" diff --git a/vs/bitunpack_avx2.c b/vs/bitunpack_avx2.c index 8d844f6a..ed284ca2 100644 --- a/vs/bitunpack_avx2.c +++ b/vs/bitunpack_avx2.c @@ -1 +1,2 @@ -#include "lib\bitunpack.c" +#define __AVX2__ 1 +#include "../lib/bitunpack.c" diff --git a/vs/bitutil_avx2.c b/vs/bitutil_avx2.c index e4abc693..04434bc4 100644 --- a/vs/bitutil_avx2.c +++ b/vs/bitutil_avx2.c @@ -1,2 +1,2 @@ -#define __AVX2__ -#include "lib\bitutil.c" \ No newline at end of file +#define __AVX2__ 1 +#include "../lib/bitutil.c" diff --git a/vs/transpose_avx2.c b/vs/transpose_avx2.c index 3d73327b..8da54b0d 100644 --- a/vs/transpose_avx2.c +++ b/vs/transpose_avx2.c @@ -1 +1,2 @@ -#include "lib\transpose.c" +#define __AVX2__ 1 +#include "../lib/transpose.c" diff --git a/vs/vp4c_avx2.c b/vs/vp4c_avx2.c index 32977c0c..580f140d 100644 --- a/vs/vp4c_avx2.c +++ b/vs/vp4c_avx2.c @@ -1 +1,2 @@ -#include "lib\vp4c.c" +#define __AVX2__ 1 +#include "../lib/vp4c.c" diff --git a/vs/vp4d_avx2.c b/vs/vp4d_avx2.c index 220bf936..4b2269ab 100644 --- a/vs/vp4d_avx2.c +++ b/vs/vp4d_avx2.c @@ -1 +1,2 @@ -#include "lib\vp4d.c" +#define __AVX2__ 1 +#include "../lib/vp4d.c" diff --git a/vs/vs2022/TurboPFor.vcxproj b/vs/vs2022/TurboPFor.vcxproj index 28974813..6b3ff7a8 100644 --- a/vs/vs2022/TurboPFor.vcxproj +++ b/vs/vs2022/TurboPFor.vcxproj @@ -93,7 +93,7 @@ MultiThreadedDebug true /w24003 /w24005 /w24028 /w24047 /w24090 /w24133 /w24146 /w24333 /w24789 %(AdditionalOptions) - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) ../.. @@ -106,7 +106,7 @@ MultiThreadedDebug true /w24003 /w24005 /w24028 /w24047 /w24090 /w24133 /w24146 /w24333 /w24789 %(AdditionalOptions) - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) ../.. @@ -116,13 +116,13 @@ true true true - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) + __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) AdvancedVectorExtensions Speed MultiThreaded true /w24003 /w24005 /w24028 /w24047 /w24090 /w24133 /w24146 /w24333 /w24789 %(AdditionalOptions) - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) ../.. @@ -132,52 +132,30 @@ true true true - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) + __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) AdvancedVectorExtensions Speed MultiThreaded true /w24003 /w24005 /w24028 /w24047 /w24090 /w24133 /w24146 /w24333 /w24789 %(AdditionalOptions) - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-array-bounds -Wno-implicit-int -Wno-unused-label -Wno-uninitialized -Wno-missing-braces -Wno-int-conversion -Wno-macro-redefined -Wno-unknown-pragmas -Wno-shift-op-parentheses -Wno-compare-distinct-pointer-types %(AdditionalOptions) ../.. - - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - false - + - - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - + - - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG - NotSet - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG;%(PreprocessorDefinitions) - AdvancedVectorExtensions - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG - AdvancedVectorExtensions - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG - Default - - - AdvancedVectorExtensions - + + - - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - - - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG;%(PreprocessorDefinitions) - __SSE__;__SSE2__;__SSE3__;__SSSE3__;__SSE4_1__;__SSE4_2__;__AVX__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG;%(PreprocessorDefinitions) - + + @@ -185,56 +163,39 @@ AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) + AdvancedVectorExtensions2 + AdvancedVectorExtensions2 + AdvancedVectorExtensions2 + AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) AdvancedVectorExtensions2 AdvancedVectorExtensions2 AdvancedVectorExtensions2 - __AVX2__;%(PreprocessorDefinitions) - __AVX2__;%(PreprocessorDefinitions) diff --git a/vs/vs2022/icapp.vcxproj b/vs/vs2022/icapp.vcxproj index 37839338..6e6fe384 100644 --- a/vs/vs2022/icapp.vcxproj +++ b/vs/vs2022/icapp.vcxproj @@ -100,9 +100,8 @@ Disabled true _CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG;%(PreprocessorDefinitions) - true /w24146 /w24133 /w24996 - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized MultiThreadedDebug AdvancedVectorExtensions ..\..\ext @@ -117,11 +116,10 @@ Disabled true CODEC2;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;_DEBUG;%(PreprocessorDefinitions) - true /w24146 /w24133 /w24996 - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized MultiThreadedDebug - AdvancedVectorExtensions2 + AdvancedVectorExtensions ..\..\ext @@ -132,16 +130,15 @@ MaxSpeed - true true true _CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - true /w24146 /w24133 /w24996 - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized MultiThreaded AdvancedVectorExtensions ..\..\ext + true Console @@ -153,16 +150,15 @@ MaxSpeed - true true true CODEC2;_CRT_SECURE_NO_WARNINGS=;_CONSOLE;NDEBUG;%(PreprocessorDefinitions) - true /w24146 /w24133 /w24996 - -Wno-parentheses -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized + -Wno-parentheses -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-unused-label -Wno-unused-function -Wno-logical-op-parentheses -Wno-pointer-type-mismatch -Wno-sometimes-uninitialized MultiThreaded - AdvancedVectorExtensions2 + AdvancedVectorExtensions ..\..\ext + true Console