Lines Matching refs:newsize
1053 register I32 newsize = oldsize * 2;
1076 Renew(a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1082 New(2, a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1097 Zero(&a[oldsize * sizeof(HE*)], (newsize-oldsize) * sizeof(HE*), char); /* zero 2nd half*/
1098 xhv->xhv_max = --newsize; /* HvMAX(hv) = --newsize */
1110 if ((HeHASH(entry) & newsize) != (U32)i) {
1152 ++newsize;
1153 Newz(2, a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1162 for (i=0; i<newsize; i++,aep++) {
1207 register I32 newsize;
1215 newsize = (I32) newmax; /* possible truncation here */
1216 if (newsize != newmax || newmax <= oldsize)
1218 while ((newsize & (1 + ~newsize)) != newsize) {
1219 newsize &= ~(newsize & (1 + ~newsize)); /* get proper power of 2 */
1221 if (newsize < newmax)
1222 newsize *= 2;
1223 if (newsize < newmax)
1230 Renew(a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1236 New(2, a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1250 Zero(&a[oldsize * sizeof(HE*)], (newsize-oldsize) * sizeof(HE*), char); /* zero 2nd half*/
1253 Newz(0, a, PERL_HV_ARRAY_ALLOC_BYTES(newsize), char);
1255 xhv->xhv_max = --newsize; /* HvMAX(hv) = --newsize */
1265 if ((j = (HeHASH(entry) & newsize)) != i) {