Changeset 310 for libmpc/trunk/libmpcdec/mpc_bits_reader.h
- Timestamp:
- 05/04/07 14:10:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_bits_reader.h
r296 r310 44 44 extern const mpc_uint32_t Cnk_lost[MAX_ENUM / 2][MAX_ENUM]; 45 45 46 // can read up to 31 bits 46 47 static mpc_inline mpc_uint32_t mpc_bits_read(mpc_bits_reader * r, const unsigned int nb_bits) 47 48 { … … 58 59 } 59 60 60 return ret & ( -1u >> (32 - nb_bits));61 return ret & ((1 << nb_bits) - 1); 61 62 } 62 63
Note: See TracChangeset
for help on using the changeset viewer.