Changeset 1114


Ignore:
Timestamp:
Dec 22, 2011, 8:34:37 PM (9 years ago)
Author:
sam
Message:

core: fix compilation warnings in one of the float-to-half LUTs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/half.cpp

    r926 r1114  
    4747    {
    4848#define S1(i) (((i) < 103) ? 0x0000 : \
    49                ((i) < 113) ? 0x0400 >> (113 - (i)) : \
     49               ((i) < 113) ? 0x0400 >> (0x1f & (113 - (i))) : \
    5050               ((i) < 143) ? ((i) - 112) << 10 : 0x7c00)
    5151        S256(0),
    5252#undef S1
    53 #define S1(i) (0x8000 | (((i) < 103) ? 0x0000 : \
    54                          ((i) < 113) ? 0x0400 >> (113 - (i)) : \
    55                          ((i) < 143) ? ((i) - 112) << 10 : 0x7c00))
     53#define S1(i) (0x8000 | basetable[i])
    5654        S256(0),
    5755#undef S1
Note: See TracChangeset for help on using the changeset viewer.