From cc2bdf0b01e9cd7eb0eb747005e255b6498ac256 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 20 Sep 2011 12:03:46 +0000 Subject: [PATCH] test: fix the benchmark suite compilation on SNC. --- test/benchmark/trig.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/benchmark/trig.cpp b/test/benchmark/trig.cpp index 90b7b5e5..9937fb1b 100644 --- a/test/benchmark/trig.cpp +++ b/test/benchmark/trig.cpp @@ -63,7 +63,7 @@ void bench_trig(int mode) /* Sin */ timer.GetMs(); for (size_t i = 0; i < TRIG_TABLE_SIZE; i++) -#if defined __GNUC__ +#if defined __GNUC__ && !defined __SNC__ pf2[i] = __builtin_sinf(pf[i]); #else pf2[i] = sinf(pf[i]); @@ -89,7 +89,7 @@ void bench_trig(int mode) /* Cos */ timer.GetMs(); for (size_t i = 0; i < TRIG_TABLE_SIZE; i++) -#if defined __GNUC__ +#if defined __GNUC__ && !defined __SNC__ pf2[i] = __builtin_cosf(pf[i]); #else pf2[i] = cosf(pf[i]); @@ -116,7 +116,7 @@ void bench_trig(int mode) timer.GetMs(); for (size_t i = 0; i < TRIG_TABLE_SIZE; i++) { -#if defined __GNUC__ +#if defined __GNUC__ && !defined __SNC__ pf2[i] = __builtin_sinf(pf[i]); pf3[i] = __builtin_cosf(pf[i]); #else @@ -149,7 +149,7 @@ void bench_trig(int mode) /* Tan */ timer.GetMs(); for (size_t i = 0; i < TRIG_TABLE_SIZE; i++) -#if defined __GNUC__ +#if defined __GNUC__ && !defined __SNC__ pf2[i] = __builtin_tanf(pf[i]); #else pf2[i] = tanf(pf[i]);