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

Method alloc

gfanlib/gfanlib_z.h:216–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 data=value<<1;
215 }
216 void alloc(int nlimbs)//one limb is added since that will tell the number of remaining limbs
217 {
218 int64_t temp=(int64_t)malloc((nlimbs+1)*limbSizeInBytes);
219 assert(temp);
220 data=temp+1;
221 }
222 LimbWord *limbs()//assuming that limbs exist
223 {
224 return (LimbWord*)(data-1);

Callers

nothing calls this directly

Calls 2

mallocFunction · 0.85
assertFunction · 0.85

Tested by

no test coverage detected