Move more performance tests inside GLM_PERF_ENABLE

This commit is contained in:
Christophe Riccio
2014-11-15 00:20:56 +01:00
parent 0b8ca1a5b6
commit 16a0c960f7
3 changed files with 24 additions and 10 deletions

View File

@@ -166,6 +166,8 @@ void error(int x, int y) {
int main()
{
# ifdef GLM_TEST_ENABLE_PERF
int i, n;
static int test[] = {0,0, 1,1, 2,1, 3,2, 4,1, 5,2, 6,2, 7,3,
8,1, 9,2, 10,2, 11,3, 12,2, 13,3, 14,3, 15,4, 16,1, 17,2,
@@ -274,4 +276,6 @@ int main()
if (errors == 0)
printf("Passed all %d cases.\n", sizeof(test)/8);
# endif//GLM_TEST_ENABLE_PERF
}

View File

@@ -310,6 +310,8 @@ void error(int x, int y) {
int main()
{
# ifdef GLM_TEST_ENABLE_PERF
int i, n;
static unsigned test[] = {0,32, 1,31, 2,30, 3,30, 4,29, 5,29, 6,29,
7,29, 8,28, 9,28, 16,27, 32,26, 64,25, 128,24, 255,24, 256,23,
@@ -440,4 +442,6 @@ int main()
if (errors == 0)
printf("Passed all %d cases.\n", sizeof(test)/8);
# endif//GLM_TEST_ENABLE_PERF
}