Move more performance tests inside GLM_PERF_ENABLE
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user