Ignore:
Timestamp:
Aug 29, 2011, 7:03:07 PM (8 years ago)
Author:
sam
Message:

core: tune the half precision code so that the best variants are being
used on the PS3 platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/half.cpp

    r877 r879  
    3535    CPPUNIT_TEST_SUITE(HalfTest);
    3636    CPPUNIT_TEST(test_half_from_float);
    37     CPPUNIT_TEST(test_half_makeslow);
     37    CPPUNIT_TEST(test_half_makeaccurate);
    3838    CPPUNIT_TEST(test_half_makebits);
    3939    CPPUNIT_TEST(test_half_is_nan);
     
    6767    }
    6868
    69     void test_half_makeslow()
     69    void test_half_makeaccurate()
    7070    {
    7171        for (size_t i = 0; i < sizeof(pairs) / sizeof(*pairs); i++)
    7272        {
    73             half a = half::makeslow(pairs[i].f);
     73            half a = half::makeaccurate(pairs[i].f);
    7474            uint16_t b = pairs[i].x;
    7575            CPPUNIT_ASSERT_EQUAL(a.bits, b);
Note: See TracChangeset for help on using the changeset viewer.