Changeset 6 for trunk/include/mpcdec/internal.h
- Timestamp:
- 08/12/06 16:24:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/mpcdec/internal.h
r3 r6 47 47 static __inline 48 48 mpc_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)); 53 51 } 54 52
Note: See TracChangeset
for help on using the changeset viewer.