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

Function fxFindColor

xs/tools/xslOpt.c:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void fxFindColor(txConflictTable* conflictTable, txFlag* flags, txID count)
69{
70 txConflictEntry* conflictEntry = conflictTable->first;
71 memset(flags, 0, count);
72 flags[0] = 1;
73 while (conflictEntry) {
74 txColorTable* colorTable = conflictEntry->colorTable;
75 txColorEntry* colorEntry = colorTable->first;
76 while (colorEntry) {
77 txID color = colorEntry->conflictTable->color;
78 flags[color] = 1;
79 colorEntry = colorEntry->next;
80 }
81 conflictEntry = conflictEntry->next;
82 }
83 conflictTable->color = (txID)(((txFlag*)memchr(flags, 0, count)) - flags);
84}
85
86txInteger fxFindHoles(txSlot** table, txFlag* flags, txID count)
87{

Callers 1

fxOptimizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected