MCPcopy Create free account
hub / github.com/Singular/Singular / omFindCell

Function omFindCell

omalloc/omtTestError.c:16–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14};
15
16omMemCell omFindCell(struct LongSpec spec)
17{
18 int i;
19 for (i=0; i<MAX_CELLS; i++)
20 {
21 if ((cells[i].addr != NULL) &&
22 (spec.MinTrack == 0 || (DO_CHECK(cells[i].spec) &&
23 DO_TRACK(cells[i].spec) &&
24 GET_TRACK(cells[i].spec) >= spec.MinTrack)) &&
25 (spec.MinSize == 0 || GET_SIZE(cells[i].spec) >= spec.MinSize) &&
26 (spec.MaxSize == 0 || GET_SIZE(cells[i].spec) <= spec.MaxSize) &&
27 (spec.NotIsBin == 0 || cells[i].bin == NULL) &&
28 (spec.NotZero == 0 || !IS_ZERO(cells[i].spec)) &&
29 (spec.NoTrack == 0 || !DO_CHECK(cells[i].spec) || !DO_TRACK(cells[i].spec)))
30 {
31 return &cells[i];
32 }
33 }
34 return NULL;
35}
36
37int omtTestErrors()
38{

Callers 1

omtTestErrorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected