Ignore:
Timestamp:
08/12/06 16:24:59 (18 years ago)
Author:
zorg
Message:

Update to 1.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/mpcdec/internal.h

    r3 r6  
    4747static __inline
    4848mpc_uint32_t swap32(mpc_uint32_t val) {
    49     const unsigned char* src = (const unsigned char*)&val;
    50     return
    51         (mpc_uint32_t)src[0] |
    52         ((mpc_uint32_t)src[1] << 8) | ((mpc_uint32_t)src[2] << 16) | ((mpc_uint32_t)src[3] << 24);
     49    return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) |
     50            ((val & 0x0000ff00) <<  8) | ((val & 0x000000ff) << 24));
    5351}
    5452
Note: See TracChangeset for help on using the changeset viewer.