Ignore:
Timestamp:
Sep 20, 2011, 2:03:46 PM (10 years ago)
Author:
sam
Message:

test: fix the benchmark suite compilation on SNC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/benchmark/trig.cpp

    r942 r964  
    6464        timer.GetMs();
    6565        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    66 #if defined __GNUC__
     66#if defined __GNUC__ && !defined __SNC__
    6767            pf2[i] = __builtin_sinf(pf[i]);
    6868#else
     
    9090        timer.GetMs();
    9191        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    92 #if defined __GNUC__
     92#if defined __GNUC__ && !defined __SNC__
    9393            pf2[i] = __builtin_cosf(pf[i]);
    9494#else
     
    117117        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    118118        {
    119 #if defined __GNUC__
     119#if defined __GNUC__ && !defined __SNC__
    120120            pf2[i] = __builtin_sinf(pf[i]);
    121121            pf3[i] = __builtin_cosf(pf[i]);
     
    150150        timer.GetMs();
    151151        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    152 #if defined __GNUC__
     152#if defined __GNUC__ && !defined __SNC__
    153153            pf2[i] = __builtin_tanf(pf[i]);
    154154#else
Note: See TracChangeset for help on using the changeset viewer.