- Timestamp:
- Apr 11, 2014, 1:34:51 PM (11 years ago)
- Location:
- branches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.0.x/include/Pacpus/PacpusTools/BinaryDecoder.h
r295 r305 774 774 c = data[startBit>>3]; // >>3 <=> div 8 775 775 //c >>= (8-((startBit & 0x07)+1)); // &0x07 <=> modulo 8 776 c >>= startBit & 0x07- (length - 1); // &0x07 <=> modulo 8776 c >>= (startBit & 0x07) - (length - 1); // &0x07 <=> modulo 8 777 777 *result = c & getMask8( length ); 778 778 -
branches/0.1.x/include/Pacpus/PacpusTools/BinaryDecoder.h
r295 r305 776 776 c = data[startBit>>3]; // >>3 <=> div 8 777 777 //c >>= (8-((startBit & 0x07)+1)); // &0x07 <=> modulo 8 778 c >>= startBit & 0x07- (length - 1); // &0x07 <=> modulo 8778 c >>= (startBit & 0x07) - (length - 1); // &0x07 <=> modulo 8 779 779 *result = c & getMask8( length ); 780 780
Note:
See TracChangeset
for help on using the changeset viewer.