Lines Matching refs:BOCU1_TRAIL_COUNT
73 #define BOCU1_TRAIL_COUNT ((BOCU1_MAX_TRAIL-BOCU1_MIN+1)+BOCU1_TRAIL_CONTROLS_COUNT) macro
91 #define BOCU1_REACH_POS_2 (BOCU1_REACH_POS_1+BOCU1_LEAD_2*BOCU1_TRAIL_COUNT)
92 #define BOCU1_REACH_NEG_2 (BOCU1_REACH_NEG_1-BOCU1_LEAD_2*BOCU1_TRAIL_COUNT)
96 (BOCU1_REACH_POS_2+BOCU1_LEAD_3*BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT)
98 #define BOCU1_REACH_NEG_3 (BOCU1_REACH_NEG_2-BOCU1_LEAD_3*BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT)
304 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
305 diff/=BOCU1_TRAIL_COUNT; in packDiff()
314 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
315 diff/=BOCU1_TRAIL_COUNT; in packDiff()
318 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
319 diff/=BOCU1_TRAIL_COUNT; in packDiff()
327 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
328 diff/=BOCU1_TRAIL_COUNT; in packDiff()
331 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
332 diff/=BOCU1_TRAIL_COUNT; in packDiff()
350 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in packDiff()
359 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in packDiff()
362 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in packDiff()
370 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in packDiff()
373 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in packDiff()
381 m=diff+BOCU1_TRAIL_COUNT; in packDiff()
526 m=diff%BOCU1_TRAIL_COUNT; in _Bocu1FromUnicodeWithOffsets()
527 diff/=BOCU1_TRAIL_COUNT; in _Bocu1FromUnicodeWithOffsets()
531 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in _Bocu1FromUnicodeWithOffsets()
767 m=diff%BOCU1_TRAIL_COUNT; in _Bocu1FromUnicode()
768 diff/=BOCU1_TRAIL_COUNT; in _Bocu1FromUnicode()
772 NEGDIVMOD(diff, BOCU1_TRAIL_COUNT, m); in _Bocu1FromUnicode()
890 diff=((int32_t)b-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in decodeBocu1LeadByte()
894 … diff=((int32_t)b-BOCU1_START_POS_3)*BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_2+1; in decodeBocu1LeadByte()
905 diff=((int32_t)b-BOCU1_START_NEG_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_NEG_1; in decodeBocu1LeadByte()
909 … diff=((int32_t)b-BOCU1_START_NEG_3)*BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT+BOCU1_REACH_NEG_2; in decodeBocu1LeadByte()
913 diff=-BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT+BOCU1_REACH_NEG_3; in decodeBocu1LeadByte()
949 return b*BOCU1_TRAIL_COUNT; in decodeBocu1TrailByte()
951 return b*(BOCU1_TRAIL_COUNT*BOCU1_TRAIL_COUNT); in decodeBocu1TrailByte()
1067 diff=((int32_t)c-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in _Bocu1ToUnicodeWithOffsets()
1069 diff=((int32_t)c-BOCU1_START_NEG_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_NEG_1; in _Bocu1ToUnicodeWithOffsets()
1274 diff=((int32_t)c-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in _Bocu1ToUnicode()
1276 diff=((int32_t)c-BOCU1_START_NEG_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_NEG_1; in _Bocu1ToUnicode()