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

Function hGetpure

kernel/combinatorics/hutil.cc:1052–1061  ·  view source on GitHub ↗

* a bug in Metrowerks with "lifetime analysis" *scmon hGetpure(scmon p) *{ * scmon p1, pn; * p1 = p + 1; * pn = p1 + (currRing->N); * memcpy(pn, p1, (currRing->N) * sizeof(int)); * return pn - 1; *} */

Source from the content-addressed store, hash-verified

1050*}
1051*/
1052scmon hGetpure(scmon p)
1053{
1054 scmon p1 = p;
1055 scmon pn;
1056 p1++;
1057 pn = p1;
1058 pn += (currRing->N);
1059 memcpy(pn, p1, (currRing->N) * sizeof(int));
1060 return pn - 1;
1061}
1062

Callers 6

hHilbStepFunction · 0.85
hDimSolveFunction · 0.85
hdegree.ccFile · 0.85
hIndAllMultFunction · 0.85
hZeroMultFunction · 0.85
hHedgeStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected