Ignore:
Timestamp:
Nov 21, 2011, 1:49:47 AM (9 years ago)
Author:
sam
Message:

core: port all code to NativeClient. Nothing runs for now, but it builds.

File:
1 edited

Legend:

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

    r964 r1082  
    7474        timer.GetMs();
    7575        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    76 #if defined HAVE_FASTMATH_H
     76#if defined HAVE_FASTMATH_H && !defined __native_client__
    7777            pf2[i] = f_sinf(pf[i]);
    7878#else
     
    100100        timer.GetMs();
    101101        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    102 #if defined HAVE_FASTMATH_H
     102#if defined HAVE_FASTMATH_H && !defined __native_client__
    103103            pf2[i] = f_cosf(pf[i]);
    104104#else
     
    131131        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    132132        {
    133 #if defined HAVE_FASTMATH_H
     133#if defined HAVE_FASTMATH_H && !defined __native_client__
    134134            pf2[i] = f_sinf(pf[i]);
    135135            pf3[i] = f_cosf(pf[i]);
     
    160160        timer.GetMs();
    161161        for (size_t i = 0; i < TRIG_TABLE_SIZE; i++)
    162 #if defined HAVE_FASTMATH_H
     162#if defined HAVE_FASTMATH_H && !defined __native_client__
    163163            pf2[i] = f_tanf(pf[i]);
    164164#else
Note: See TracChangeset for help on using the changeset viewer.