Lines Matching refs:nObjs
180 inline static void *gmallocn(int nObjs, int objSize, bool checkoverflow) { in gmallocn() argument
183 if (nObjs == 0) { in gmallocn()
186 n = nObjs * objSize; in gmallocn()
187 if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) { in gmallocn()
195 void *gmallocn(int nObjs, int objSize) { in gmallocn() argument
196 return gmallocn(nObjs, objSize, false); in gmallocn()
199 void *gmallocn_checkoverflow(int nObjs, int objSize) { in gmallocn_checkoverflow() argument
200 return gmallocn(nObjs, objSize, true); in gmallocn_checkoverflow()
221 inline static void *greallocn(void *p, int nObjs, int objSize, bool checkoverflow) { in greallocn() argument
224 if (nObjs == 0) { in greallocn()
230 n = nObjs * objSize; in greallocn()
231 if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) { in greallocn()
243 void *greallocn(void *p, int nObjs, int objSize) { in greallocn() argument
244 return greallocn(p, nObjs, objSize, false); in greallocn()
247 void *greallocn_checkoverflow(void *p, int nObjs, int objSize) { in greallocn_checkoverflow() argument
248 return greallocn(p, nObjs, objSize, true); in greallocn_checkoverflow()