MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / SpanEquals

Function SpanEquals

modules/piu/MC/piuRegion.c:651–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651PiuBoolean SpanEquals(PiuCoordinate* former, PiuCoordinate* current)
652{
653 PiuCoordinate c;
654 if (former) {
655 if ((c = *former++) != *current++)
656 return 0;
657 while (c) {
658 if (*former++ != *current++)
659 return 0;
660 c--;
661 }
662 }
663 else if (*current != 0)
664 return 0;
665 return 1;
666}
667
668void SpanMinMax(PiuCoordinate* span, PiuCoordinate* min, PiuCoordinate* max)
669{

Callers 2

PiuRegionCombineFunction · 0.85
PiuRegionXORFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected