Lines Matching refs:xhv
376 XPVHV* xhv;
397 xhv = (XPVHV*)SvANY(hv);
536 if (!xhv->xhv_array /* !HvARRAY(hv) */ && !needs_store) {
561 if (!xhv->xhv_array /* !HvARRAY(hv) */) {
567 Newz(503, xhv->xhv_array /* HvARRAY(hv) */,
568 PERL_HV_ARRAY_ALLOC_BYTES(xhv->xhv_max+1 /* HvMAX(hv)+1 */),
623 if (!xhv->xhv_array /* !HvARRAY(hv) */) entry = Null(HE*);
628 entry = ((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
677 xhv->xhv_placeholders--;
681 xhv->xhv_placeholders--;
738 if (!xhv->xhv_array) {
742 Newz(503, xhv->xhv_array /* HvARRAY(hv) */,
743 PERL_HV_ARRAY_ALLOC_BYTES(xhv->xhv_max+1 /* HvMAX(hv)+1 */),
747 oentry = &((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
761 xhv->xhv_placeholders++;
765 xhv->xhv_keys++; /* HvKEYS(hv)++ */
767 xhv->xhv_fill++; /* HvFILL(hv)++ */
768 } else if ((xhv->xhv_keys > (IV)xhv->xhv_max)
877 register XPVHV* xhv;
936 xhv = (XPVHV*)SvANY(hv);
937 if (!xhv->xhv_array /* !HvARRAY(hv) */)
976 oentry = &((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
1022 xhv->xhv_placeholders++; /* HvPLACEHOLDERS(hv)++ */
1026 xhv->xhv_fill--; /* HvFILL(hv)-- */
1027 if (entry == xhv->xhv_eiter /* HvEITER(hv) */)
1031 xhv->xhv_keys--; /* HvKEYS(hv)-- */
1032 if (xhv->xhv_keys == 0)
1051 register XPVHV* xhv = (XPVHV*)SvANY(hv);
1052 I32 oldsize = (I32) xhv->xhv_max+1; /* HvMAX(hv)+1 (sick) */
1055 register char *a = xhv->xhv_array; /* HvARRAY(hv) */
1087 Copy(xhv->xhv_array /* HvARRAY(hv) */, a, oldsize * sizeof(HE*), char);
1089 offer_nice_chunk(xhv->xhv_array /* HvARRAY(hv) */,
1093 Safefree(xhv->xhv_array /* HvARRAY(hv) */);
1098 xhv->xhv_max = --newsize; /* HvMAX(hv) = --newsize */
1099 xhv->xhv_array = a; /* HvARRAY(hv) = a */
1114 xhv->xhv_fill++; /* HvFILL(hv)++ */
1125 xhv->xhv_fill--; /* HvFILL(hv)-- */
1156 xhv->xhv_fill = 0;
1160 aep = (HE **) xhv->xhv_array;
1189 bep = ((HE**)a) + (hash & (I32) xhv->xhv_max);
1191 xhv->xhv_fill++; /* HvFILL(hv)++ */
1198 Safefree (xhv->xhv_array);
1199 xhv->xhv_array = a; /* HvARRAY(hv) = a */
1205 register XPVHV* xhv = (XPVHV*)SvANY(hv);
1206 I32 oldsize = (I32) xhv->xhv_max+1; /* HvMAX(hv)+1 (sick) */
1226 a = xhv->xhv_array; /* HvARRAY(hv) */
1241 Copy(xhv->xhv_array /* HvARRAY(hv) */, a, oldsize * sizeof(HE*), char);
1243 offer_nice_chunk(xhv->xhv_array /* HvARRAY(hv) */,
1247 Safefree(xhv->xhv_array /* HvARRAY(hv) */);
1255 xhv->xhv_max = --newsize; /* HvMAX(hv) = --newsize */
1256 xhv->xhv_array = a; /* HvARRAY(hv) = a */
1257 if (!xhv->xhv_fill /* !HvFILL(hv) */) /* skip rest if no entries */
1269 xhv->xhv_fill++; /* HvFILL(hv)++ */
1277 xhv->xhv_fill--; /* HvFILL(hv)-- */
1293 register XPVHV* xhv;
1297 xhv = (XPVHV*)SvANY(hv);
1304 xhv->xhv_max = 7; /* HvMAX(hv) = 7 (start with 8 buckets) */
1305 xhv->xhv_fill = 0; /* HvFILL(hv) = 0 */
1306 xhv->xhv_pmroot = 0; /* HvPMROOT(hv) = 0 */
1441 register XPVHV* xhv;
1445 xhv = (XPVHV*)SvANY(hv);
1447 if (SvREADONLY(hv) && xhv->xhv_array != NULL) {
1451 for (i = 0; i <= (I32) xhv->xhv_max; i++) {
1452 entry = ((HE**)xhv->xhv_array)[i];
1464 xhv->xhv_placeholders++; /* HvPLACEHOLDERS(hv)++ */
1472 xhv->xhv_placeholders = 0; /* HvPLACEHOLDERS(hv) = 0 */
1473 if (xhv->xhv_array /* HvARRAY(hv) */)
1474 (void)memzero(xhv->xhv_array /* HvARRAY(hv) */,
1475 (xhv->xhv_max+1 /* HvMAX(hv)+1 */) * sizeof(HE*));
1598 register XPVHV* xhv;
1601 xhv = (XPVHV*)SvANY(hv);
1603 Safefree(xhv->xhv_array /* HvARRAY(hv) */);
1610 xhv->xhv_max = 7; /* HvMAX(hv) = 7 (it's a normal hash) */
1611 xhv->xhv_array = 0; /* HvARRAY(hv) = 0 */
1612 xhv->xhv_placeholders = 0; /* HvPLACEHOLDERS(hv) = 0 */
1636 register XPVHV* xhv;
1641 xhv = (XPVHV*)SvANY(hv);
1642 entry = xhv->xhv_eiter; /* HvEITER(hv) */
1647 xhv->xhv_riter = -1; /* HvRITER(hv) = -1 */
1648 xhv->xhv_eiter = Null(HE*); /* HvEITER(hv) = Null(HE*) */
1649 /* used to be xhv->xhv_fill before 5.004_65 */
1650 return XHvTOTALKEYS(xhv);
1692 register XPVHV* xhv;
1699 xhv = (XPVHV*)SvANY(hv);
1700 oldentry = entry = xhv->xhv_eiter; /* HvEITER(hv) */
1713 xhv->xhv_eiter = entry = new_HE(); /* HvEITER(hv) = new_HE() */
1730 xhv->xhv_eiter = Null(HE*); /* HvEITER(hv) = Null(HE*) */
1738 if (!xhv->xhv_array /* !HvARRAY(hv) */)
1739 Newz(506, xhv->xhv_array /* HvARRAY(hv) */,
1740 PERL_HV_ARRAY_ALLOC_BYTES(xhv->xhv_max+1 /* HvMAX(hv)+1 */),
1759 xhv->xhv_riter++; /* HvRITER(hv)++ */
1760 if (xhv->xhv_riter > (I32)xhv->xhv_max /* HvRITER(hv) > HvMAX(hv) */) {
1762 xhv->xhv_riter = -1; /* HvRITER(hv) = -1 */
1766 entry = ((HE**)xhv->xhv_array)[xhv->xhv_riter];
1787 xhv->xhv_eiter = entry; /* HvEITER(hv) = entry */
1954 register XPVHV* xhv;
1982 xhv = (XPVHV*)SvANY(PL_strtab);
1986 oentry = &((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
2014 xhv->xhv_fill--; /* HvFILL(hv)-- */
2017 xhv->xhv_keys--; /* HvKEYS(hv)-- */
2065 register XPVHV* xhv;
2080 xhv = (XPVHV*)SvANY(PL_strtab);
2084 oentry = &((HE**)xhv->xhv_array)[hash & (I32) xhv->xhv_max];
2103 xhv->xhv_keys++; /* HvKEYS(hv)++ */
2105 xhv->xhv_fill++; /* HvFILL(hv)++ */
2106 } else if (xhv->xhv_keys > (IV)xhv->xhv_max /* HvKEYS(hv) > HvMAX(hv) */) {