Lines Matching refs:packed
127 #define BOCU1_LENGTH_FROM_PACKED(packed) \ argument
128 ((uint32_t)(packed)<0x04000000 ? (packed)>>24 : 4)
610 writePacked(int32_t packed, uint8_t *p) { in writePacked() argument
611 int32_t count=BOCU1_LENGTH_FROM_PACKED(packed); in writePacked()
614 *p++=(uint8_t)(packed>>24); in writePacked()
616 *p++=(uint8_t)(packed>>16); in writePacked()
618 *p++=(uint8_t)(packed>>8); in writePacked()
620 *p++=(uint8_t)packed; in writePacked()
643 unpackDiff(int32_t initialPrev, int32_t packed) { in unpackDiff() argument
648 count=BOCU1_LENGTH_FROM_PACKED(packed); in unpackDiff()
651 decodeBocu1(&rx, (uint8_t)(packed>>24)); in unpackDiff()
653 decodeBocu1(&rx, (uint8_t)(packed>>16)); in unpackDiff()
655 decodeBocu1(&rx, (uint8_t)(packed>>8)); in unpackDiff()
658 return decodeBocu1(&rx, (uint8_t)packed)-initialPrev; in unpackDiff()
679 int32_t packed, initialPrev; in writeDiff() local
681 packed=packDiff(diff); in writeDiff()
693 if(diff!=unpackDiff(initialPrev, packed)) { in writeDiff()
695 diff, packed, unpackDiff(initialPrev, packed)); in writeDiff()
697 return p+writePacked(packed, p); in writeDiff()