Ignore:
Timestamp:
Jan 29, 2013, 4:59:02 PM (8 years ago)
Author:
sam
Message:

base: implement UNUSED() macro and put it here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/math/poly.cpp

    r2183 r2297  
    9898int main(int argc, char **argv)
    9999{
     100    UNUSED(argc, argv);
     101
    100102    typedef union { float f; uint32_t x; } flint;
    101103
     
    109111    inspect(a5);
    110112
    111 //flint v = { 1.433971524239 };
    112 flint v = { 1.555388212204 };
    113 inspect(v.f);
    114 printf("sinf: ");
    115 flint w = { sinf(adjustf(v.f, 0)) };
    116 inspect(w.f);
    117 printf("lols: ");
    118 flint z = { lol_sin(adjustf(v.f, 0)) };
    119 inspect(z.f);
    120 
    121 printf("-- START --\n");
    122113    for (flint u = { (float)real::R_PI_2() }; u.f > 1e-30; u.x -= 1)
    123114    {
     
    130121        case 2:
    131122        case 1:
    132 inspect(u.f);
    133 printf("sinf: ");
    134 inspect(sinf(u.f));
    135123            if (lol::abs((double)s1.f - (double)s2.f) > 1e-10 * lol::abs(s1.f))
    136124                printf("%15.13g %08x: %15.13g %15.13g %08x %08x\n", u.f, u.x, s1.f, s2.f, s1.x, s2.x);
Note: See TracChangeset for help on using the changeset viewer.