Added NEON float4_t. Added float4_t unit test.

This commit is contained in:
bkaradzic
2013-12-27 22:49:00 -08:00
parent d7e986b032
commit 7d537a65c9
16 changed files with 1008 additions and 214 deletions

View File

@@ -8,6 +8,13 @@
namespace std {}
#endif
#if defined(__ANDROID__)
# include <android/log.h>
# define outf(format, ...) __android_log_print(ANDROID_LOG_DEBUG, "", format, ##__VA_ARGS__)
#else
# define outf(format, ...) printf(format, ##__VA_ARGS__)
#endif // defined(__ANDROID__)
namespace UnitTest {
void TestReporterStdout::ReportFailure(TestDetails const& details, char const* failure)
@@ -18,8 +25,8 @@ void TestReporterStdout::ReportFailure(TestDetails const& details, char const* f
char const* const errorFormat = "%s(%d): error: Failure in %s: %s\n";
#endif
using namespace std;
printf(errorFormat, details.filename, details.lineNumber, details.testName, failure);
using namespace std;
outf(errorFormat, details.filename, details.lineNumber, details.testName, failure);
}
void TestReporterStdout::ReportTestStart(TestDetails const& /*test*/)
@@ -36,11 +43,15 @@ void TestReporterStdout::ReportSummary(int const totalTestCount, int const faile
using namespace std;
if (failureCount > 0)
printf("FAILURE: %d out of %d tests failed (%d failures).\n", failedTestCount, totalTestCount, failureCount);
{
outf("FAILURE: %d out of %d tests failed (%d failures).\n", failedTestCount, totalTestCount, failureCount);
}
else
printf("Success: %d tests passed.\n", totalTestCount);
{
outf("Success: %d tests passed.\n", totalTestCount);
}
printf("Test time: %.2f seconds.\n", secondsElapsed);
outf("Test time: %.2f seconds.\n", secondsElapsed);
}
}