Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
b6e8fcb5
Commit
b6e8fcb5
authored
Apr 29, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests.
parent
631079d7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
6 deletions
+51
-6
tests/mal_test_0.c
tests/mal_test_0.c
+33
-0
tests/mal_test_0.vcxproj
tests/mal_test_0.vcxproj
+11
-4
tests/mal_test_0_build.bat
tests/mal_test_0_build.bat
+7
-2
No files found.
tests/mal_test_0.c
View file @
b6e8fcb5
...
...
@@ -2378,6 +2378,39 @@ int main(int argc, char** argv)
mal_bool32
hasErrorOccurred
=
MAL_FALSE
;
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
printf
(
"=== TESTING CORE ===
\n
"
);
result
=
do_core_tests
();
...
...
tests/mal_test_0.vcxproj
View file @
b6e8fcb5
...
...
@@ -260,8 +260,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile
Include=
"mal_dithering.c"
/>
<ClCompile
Include=
"mal_profiling.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>
...
...
@@ -269,14 +268,22 @@
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
true
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
true
</ExcludedFromBuild>
</ClCompile>
<ClCompile
Include=
"mal_
test_0
.c"
>
<ClCompile
Include=
"mal_
profiling
.c"
>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
true
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM'"
>
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_test_0.c"
>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
false
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM'"
>
false
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
false
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Release|ARM'"
>
false
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
false
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
false
</ExcludedFromBuild>
</ClCompile>
<ClCompile
Include=
"mal_test_0.cpp"
>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
true
</ExcludedFromBuild>
<ExcludedFromBuild
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM'"
>
true
</ExcludedFromBuild>
...
...
tests/mal_test_0_build.bat
View file @
b6e8fcb5
gcc
mal_test_0
.c
-o
./bin/mal_test_0.exe
-Wall -mavx
g
++
mal_test_0
.cpp
-o
./bin/mal_test_0_cpp.exe
-Wall -mavx
\ No newline at end of file
@echo
off
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
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment