Changeset 170 for mppenc/trunk/src/cvd.c


Ignore:
Timestamp:
12/19/06 22:27:26 (18 years ago)
Author:
zorg
Message:

Fix endianness issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mppenc/trunk/src/cvd.c

    r109 r170  
    223223    tmp.d *= tmp.d;
    224224    tmp.d *= tmp.d;
    225 #if ENDIAN == HAVE_LITTLE_ENDIAN
     225#ifdef MPC_BIG_ENDIAN
     226    return (tmp.n[0] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
     227#else
    226228    return (tmp.n[1] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
    227 #else
    228     return (tmp.n[0] + (45127.5 - 1072693248.)) * ( M_LN2 / (1L<<23) );
    229229#endif
    230230}
Note: See TracChangeset for help on using the changeset viewer.