mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update tests.
This commit is contained in:
@@ -2378,6 +2378,39 @@ int main(int argc, char** argv)
|
|||||||
mal_bool32 hasErrorOccurred = MAL_FALSE;
|
mal_bool32 hasErrorOccurred = MAL_FALSE;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
|
// Print the compiler.
|
||||||
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
|
printf("Compiler: VC++\n");
|
||||||
|
#endif
|
||||||
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
|
printf("Compiler: GCC\n");
|
||||||
|
#endif
|
||||||
|
#if defined(__clang__)
|
||||||
|
printf("Compiler: Clang\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Print CPU features.
|
||||||
|
if (mal_has_sse2()) {
|
||||||
|
printf("Has SSE: YES\n");
|
||||||
|
} else {
|
||||||
|
printf("Has SSE: NO\n");
|
||||||
|
}
|
||||||
|
if (mal_has_avx()) {
|
||||||
|
printf("Has AVX: YES\n");
|
||||||
|
} else {
|
||||||
|
printf("Has AVX: NO\n");
|
||||||
|
}
|
||||||
|
if (mal_has_avx512f()) {
|
||||||
|
printf("Has AVX-512F: YES\n");
|
||||||
|
} else {
|
||||||
|
printf("Has AVX-512F: NO\n");
|
||||||
|
}
|
||||||
|
if (mal_has_neon()) {
|
||||||
|
printf("Has NEON: YES\n");
|
||||||
|
} else {
|
||||||
|
printf("Has NEON: NO\n");
|
||||||
|
}
|
||||||
|
|
||||||
// Aligned malloc/free
|
// Aligned malloc/free
|
||||||
printf("=== TESTING CORE ===\n");
|
printf("=== TESTING CORE ===\n");
|
||||||
result = do_core_tests();
|
result = do_core_tests();
|
||||||
|
|||||||
@@ -260,7 +260,14 @@
|
|||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="mal_dithering.c" />
|
<ClCompile Include="mal_dithering.c">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="mal_profiling.c">
|
<ClCompile Include="mal_profiling.c">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
@@ -270,12 +277,12 @@
|
|||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="mal_test_0.c">
|
<ClCompile Include="mal_test_0.c">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">false</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="mal_test_0.cpp">
|
<ClCompile Include="mal_test_0.cpp">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
|
|||||||
@@ -1,2 +1,7 @@
|
|||||||
gcc mal_test_0.c -o ./bin/mal_test_0.exe -Wall -mavx
|
@echo off
|
||||||
g++ mal_test_0.cpp -o ./bin/mal_test_0_cpp.exe -Wall -mavx
|
SET c_compiler=gcc
|
||||||
|
SET cpp_compiler=g++
|
||||||
|
@echo on
|
||||||
|
|
||||||
|
%c_compiler% mal_test_0.c -o ./bin/mal_test_0.exe -Wall -mavx
|
||||||
|
%cpp_compiler% mal_test_0.cpp -o ./bin/mal_test_0_cpp.exe -Wall -mavx
|
||||||
Reference in New Issue
Block a user