/openbsd/gnu/usr.bin/perl/ |
H A D | hv.h | 284 #define HvARRAY(hv) ((hv)->sv_u.svu_hash) argument 324 #define HvRITER_get(hv) (HvHasAUX(hv) ? HvAUX(hv)->xhv_riter : -1) argument 325 #define HvEITER_get(hv) (HvHasAUX(hv) ? HvAUX(hv)->xhv_eiter : NULL) argument 326 #define HvRAND_get(hv) (HvHasAUX(hv) ? HvAUX(hv)->xhv_rand : 0) argument 327 #define HvLASTRAND_get(hv) (HvHasAUX(hv) ? HvAUX(hv)->xhv_last_rand : 0) argument 329 #define HvNAME(hv) HvNAME_get(hv) argument 330 #define HvNAMELEN(hv) HvNAMELEN_get(hv) argument 331 #define HvENAME(hv) HvENAME_get(hv) argument 332 #define HvENAMELEN(hv) HvENAMELEN_get(hv) argument 384 #define HvKEYS(hv) HvUSEDKEYS(hv) argument [all …]
|
H A D | hv.c | 481 if (!hv) in Perl_hv_common() 1597 && !(HvHasAUX(hv) && HvENAME_get(hv))) { in S_large_hash_heuristic() 1641 if (LARGE_HASH_HEURISTIC(hv, HvTOTALKEYS(hv))) in S_hsplit() 2009 if (SvREADONLY(hv) && HvTOTALKEYS(hv)) { in Perl_hv_clear() 2162 if (HvHasAUX(hv) && ((iter = HvAUX(hv)))) { in Perl_hfree_next_entry() 2498 iter = HvHasAUX(hv) ? HvAUX(hv) : hv_auxinit(hv); in Perl_hv_riter_p() 2516 iter = HvHasAUX(hv) ? HvAUX(hv) : hv_auxinit(hv); in Perl_hv_eiter_p() 2723 struct xpvhv_aux *aux = HvHasAUX(hv) ? HvAUX(hv) : hv_auxinit(hv); in Perl_hv_ename_add() 2853 struct xpvhv_aux * const iter = HvHasAUX(hv) ? HvAUX(hv) : hv_auxinit(hv); in Perl_hv_backreferences_p() 2975 if (SvMAGICAL(hv) && SvRMAGICAL(hv)) { in Perl_hv_iternext_flags() [all …]
|
H A D | mathoms.c | 442 Perl_hv_iternext(pTHX_ HV *hv) in Perl_hv_iternext() argument 446 return hv_iternext_flags(hv, 0); in Perl_hv_iternext() 450 Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how) in Perl_hv_magic() argument 554 Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash) in Perl_hv_exists_ent() argument 566 return (HE *)hv_common(hv, keysv, NULL, 0, 0, in Perl_hv_fetch_ent() 583 return (SV**) hv_common(hv, NULL, key, klen, flags, in Perl_hv_store_flags() 600 return (SV **) hv_common(hv, NULL, key, klen, flags, in Perl_hv_store() 637 return (SV **) hv_common(hv, NULL, key, klen, flags, in Perl_hv_fetch() 674 HV * const hv = MUTABLE_HV(newSV_type(SVt_PVHV)); in Perl_newHV() local 675 assert(!SvOK(hv)); in Perl_newHV() [all …]
|
H A D | vutil.c | 273 SV * hv; in Perl_scan_version2() local 303 (void)hv_stores(MUTABLE_HV(hv), "qv", newSViv(qv)); in Perl_scan_version2() 305 (void)hv_stores(MUTABLE_HV(hv), "alpha", newSViv(alpha)); in Perl_scan_version2() 307 (void)hv_stores(MUTABLE_HV(hv), "width", newSViv(width)); in Perl_scan_version2() 429 (void)hv_stores(MUTABLE_HV(hv), "original", orig); in Perl_scan_version2() 430 (void)hv_stores(MUTABLE_HV(hv), "vinf", newSViv(1)); in Perl_scan_version2() 438 (void)hv_stores(MUTABLE_HV(hv), "original", orig); in Perl_scan_version2() 484 SV * const hv = newSVrv(rv, "version"); in Perl_new_version2() local 495 (void)hv_stores(MUTABLE_HV(hv), "qv", newSViv(1)); in Perl_new_version2() 498 (void)hv_stores(MUTABLE_HV(hv), "alpha", newSViv(1)); in Perl_new_version2() [all …]
|
H A D | scope.c | 532 HV *ohv, *hv; in Perl_save_hash() local 541 hv = GvHVn(gv); in Perl_save_hash() 544 return hv; in Perl_save_hash() 826 SvREFCNT_inc_simple_void_NN(hv); in Perl_save_hdelete() 1215 HV * hv; in Perl_leave_scope() local 1217 hv = GvSTASH(a0.any_gv); in Perl_leave_scope() 1218 if (hv && HvHasENAME(hv) && ( in Perl_leave_scope() 1325 HV *hv; in Perl_leave_scope() local 1333 if ((hv=GvSTASH(a0.any_gv)) && HvHasENAME(hv)) { in Perl_leave_scope() 1605 HV *const hv = newHV(); in Perl_leave_scope() local [all …]
|
/openbsd/sys/dev/pv/ |
H A D | pvbus.c | 155 struct pvbus_hv *hv; in pvbus_identify() local 182 hv = &pvbus_hv[i]; in pvbus_identify() 183 hv->hv_base = base; in pvbus_identify() 327 printf(" %u.%u", hv->hv_major, hv->hv_minor); in pvbus_hyperv_print() 342 (hv->hv_major == 4 && hv->hv_minor < 3)) { in pvbus_xen() 351 printf(" %u.%u", hv->hv_major, hv->hv_minor); in pvbus_xen_print() 358 struct pvbus_hv *hv; in pvbus_minor() local 362 if (hv->hv_base == 0) in pvbus_minor() 427 struct pvbus_hv *hv; in pvbusioctl() local 440 if (hv->hv_base == 0 || hv->hv_kvop == NULL) in pvbusioctl() [all …]
|
H A D | pvclock.c | 84 struct pvbus_hv *hv; in pvclock_match() local 90 hv = &pva->pva_hv[PVBUS_KVM]; in pvclock_match() 91 if (hv->hv_base == 0) in pvclock_match() 92 hv = &pva->pva_hv[PVBUS_OPENBSD]; in pvclock_match() 93 if (hv->hv_base != 0) { in pvclock_match() 99 if ((hv->hv_features & (1 << KVM_FEATURE_CLOCKSOURCE2)) == 0) in pvclock_match() 108 if ((hv->hv_features & in pvclock_match()
|
/openbsd/gnu/usr.bin/perl/ext/re/ |
H A D | re.xs | 160 HV *hv; variable 181 hv = newHV(); 183 hv_stores(hv, "minlen", newSViv(r->minlen)); 185 hv_stores(hv, "gofs", newSViv(r->gofs)); 188 hv_stores(hv, "anchored", data->substr 190 hv_stores(hv, "anchored utf8", data->utf8_substr 197 hv_stores(hv, "floating", data->substr 205 hv_stores(hv, "checking", newSVpv( 229 hv_stores(hv, "stclass", sv); 231 hv_stores(hv, "stclass", &PL_sv_undef); [all …]
|
/openbsd/lib/libutil/ |
H A D | ohash.c | 26 uint32_t hv; member 106 n[i].hv = h->t[j].hv; in ohash_resize() 223 uint32_t hv) in ohash_lookup_interval() argument 232 i = hv % h->size; in ohash_lookup_interval() 241 } else if (h->t[i].hv == hv && in ohash_lookup_interval() 246 h->t[empty].hv = hv; in ohash_lookup_interval() 265 h->t[i].hv = hv; in ohash_lookup_interval() 288 } else if (h->t[i].hv == hv && in ohash_lookup_memory() 291 h->t[empty].hv = hv; in ohash_lookup_memory() 309 h->t[i].hv = hv; in ohash_lookup_memory() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/Hash-Util/ |
H A D | Util.xs | 14 HV *hv; 16 hv = MUTABLE_HV(hashref); 17 hv_clear_placeholders(hv); 118 if (HvHasAUX(hv)) { in hash_traversal_mask() 153 const HV * hv = NULL; in bucket_info() local 157 hv = PL_strtab; in bucket_info() 159 if (hv) { in bucket_info() 213 const HV * hv = NULL; in bucket_array() local 217 hv = PL_strtab; in bucket_array() 219 if (hv) { in bucket_array() [all …]
|
/openbsd/gnu/usr.bin/perl/dist/Devel-PPPort/parts/inc/ |
H A D | HvNAME | 18 __UNDEFINED__ HvNAME_get(hv) HvNAME(hv) 20 __UNDEFINED__ HvNAMELEN_get(hv) (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0) 25 HvNAME_get(hv) 26 HV *hv 29 HvNAMELEN_get(hv) 30 HV *hv
|
H A D | pvs | 30 __UNDEFINED__ hv_fetchs(hv, key, lval) hv_fetch(hv, key "", sizeof(key) - 1, lval) 31 __UNDEFINED__ hv_stores(hv, key, val) hv_store(hv, key "", sizeof(key) - 1, val, 0) 85 hv_fetchs(hv) 86 SV *hv 90 s = hv_fetchs((HV *) SvRV(hv), "hv_fetchs", 0); 95 hv_stores(hv, sv) 96 SV *hv 99 (void) hv_stores((HV *) SvRV(hv), "hv_stores", SvREFCNT_inc_simple(sv));
|
H A D | cop | 29 __UNDEFINED__ CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch) 30 __UNDEFINED__ CopSTASH_eq(c,hv) ((hv) && (CopSTASHPV(c) == HvNAME(hv) \ 31 || (CopSTASHPV(c) && HvNAME(hv) \ 32 && strEQ(CopSTASHPV(c), HvNAME(hv))))) 43 __UNDEFINED__ CopSTASH_set(c,hv) ((c)->cop_stash = (hv)) 46 __UNDEFINED__ CopSTASH_eq(c,hv) (CopSTASH(c) == (hv))
|
/openbsd/usr.bin/ctfconv/ |
H A D | hash.c | 27 uint32_t hv; member 85 i = h->t[j].hv % ns; in hash_resize() 86 incr = ((h->t[j].hv % (ns - 2)) & ~1) + 1; in hash_resize() 92 n[i].hv = h->t[j].hv; in hash_resize() 196 uint32_t hv; in hash_qlookup() local 198 hv = hash_interval(start, &end); in hash_qlookup() 201 i = hv % h->size; in hash_qlookup() 202 incr = ((hv % (h->size-2)) & ~1) + 1; in hash_qlookup() 207 } else if (h->t[i].hv == hv && in hash_qlookup() 211 h->t[empty].hv = hv; in hash_qlookup() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Digest-SHA/src/ |
H A D | sdf.c | 13 HV* hv = Nullhv; local 26 if (gvp && (gv = *gvp) != (GV*)&sv_undef && (hv = GvHV(gv))) { 28 SV** svp = (SV**)hv_fetch(hv, name, len, FALSE); 36 if(!hv) { 44 hv = GvHVn(gv); 46 if(hv) { 59 (void)hv_store(hv,name,len,&sv_yes,0); 63 (void)hv_store(hv,name,len,&sv_no,0);
|
/openbsd/gnu/usr.bin/perl/ext/Devel-Peek/ |
H A D | Peek.xs | 184 svp = hv_fetchs(hv, "topbucket", 1); in _mstats_to_hv() 193 svp = hv_fetchs(hv, "totfree", 1); in _mstats_to_hv() 196 svp = hv_fetchs(hv, "total", 1); in _mstats_to_hv() 199 svp = hv_fetchs(hv, "total_chain", 1); in _mstats_to_hv() 202 svp = hv_fetchs(hv, "total_sbrk", 1); in _mstats_to_hv() 205 svp = hv_fetchs(hv, "sbrks", 1); in _mstats_to_hv() 208 svp = hv_fetchs(hv, "sbrk_good", 1); in _mstats_to_hv() 211 svp = hv_fetchs(hv, "sbrk_slack", 1); in _mstats_to_hv() 214 svp = hv_fetchs(hv, "start_slack", 1); in _mstats_to_hv() 220 svp = hv_fetchs(hv, "minbucket", 1); in _mstats_to_hv() [all …]
|
/openbsd/gnu/usr.bin/perl/dist/Storable/ |
H A D | Storable.xs | 42 # define HvRITER_set(hv,r) (HvRITER(hv) = r) argument 45 # define HvEITER_set(hv,r) (HvEITER(hv) = r) argument 60 # define HvTOTALKEYS(hv) HvKEYS(hv) argument 64 # define HvUSEDKEYS(hv) HvKEYS(hv) argument 6340 HV *hv; in get_lhash() local 6360 hv = newHV(); in get_lhash() 6425 HV *hv; in retrieve_hash() local 6437 hv = newHV(); in retrieve_hash() 6503 HV *hv; in retrieve_flag_hash() local 6527 hv = newHV(); in retrieve_flag_hash() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | simplify-rtx.c | 457 if (hv < 0) 580 hv = ~ h1; 591 lv = l1, hv = h1; 595 hv = 0; 604 lv = l1, hv = h1; 614 hv = 0; 852 l2 = lv, h2 = hv; 886 lv = l1, hv = h1; 888 lv = l2, hv = h2; 896 lv = l1, hv = h1; [all …]
|
/openbsd/gnu/usr.bin/perl/dist/Data-Dumper/ |
H A D | Dumper.xs | 1455 HV *hv; variable 1508 && (hv = (HV*)SvRV((SV*)href)) 1509 && SvTYPE(hv) == SVt_PVHV) { 1525 if ((svp = hv_fetchs(hv, "terse", FALSE))) 1527 if ((svp = hv_fetchs(hv, "useqq", FALSE))) 1529 if ((svp = hv_fetchs(hv, "pad", FALSE))) 1531 if ((svp = hv_fetchs(hv, "xpad", FALSE))) 1533 if ((svp = hv_fetchs(hv, "apad", FALSE))) 1535 if ((svp = hv_fetchs(hv, "sep", FALSE))) 1537 if ((svp = hv_fetchs(hv, "pair", FALSE))) [all …]
|
/openbsd/usr.bin/make/ |
H A D | targ.c | 192 uint32_t hv; in Targ_FindNodei() local 196 hv = ohash_interval(name, &ename); in Targ_FindNodei() 198 slot = ohash_lookup_interval(&targets, name, ename, hv); in Targ_FindNodei() 211 Targ_mk_special_node(const char *name, size_t n, uint32_t hv, in Targ_mk_special_node() argument 218 slot = ohash_lookup_interval(&targets, name, ename, hv); in Targ_mk_special_node()
|
H A D | suff.c | 216 uint32_t hv; in reverse_slot() local 218 hv = reverse_hashi(s, e); in reverse_slot() 356 uint32_t hv; in parse_transformi() local 371 hv = *--p; in parse_transformi() 397 reverse_hash_add_char(&hv, --p); in parse_transformi() 430 uint32_t hv; in find_best_suffix() local 438 hv = *--p; in find_best_suffix() 447 reverse_hash_add_char(&hv, --p); in find_best_suffix() 1111 uint32_t hv; in record_possible_suffixes() local 1119 hv = *--p; in record_possible_suffixes() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/XS-Typemap/ |
H A D | Typemap.xs | 338 T_HVREF( hv ) 339 HV * hv 341 RETVAL = hv; 349 T_HVREF_REFCOUNT_FIXED( hv ) 350 HV_FIXED * hv 352 SvREFCNT_inc(hv); 353 RETVAL = hv;
|
/openbsd/sys/arch/alpha/stand/netboot/ |
H A D | if_prom.c | 185 int hv, lv; in prom_init() local 192 hv = dval(*enet_addr); enet_addr++; in prom_init() 196 if (hv == -1 || lv == -1) { in prom_init() 201 desc->myea[i] = (hv << 4) | lv; in prom_init()
|
/openbsd/gnu/usr.bin/perl/cpan/Encode/Unicode/ |
H A D | Unicode.xs | 228 HV *hv = NULL; variable 328 …+SvCUR(result), ord, UNICODE_DISALLOW_ILLEGAL_INTERCHANGE | UNICODE_WARN_ILLEGAL_INTERCHANGE, &hv); 329 if (hv) { 330 SV *message = *hv_fetch(hv, "text", 4, 0); 331 U32 categories = SvUVx(*hv_fetch(hv, "warn_categories", 15, 0)); 332 sv_2mortal((SV *)hv); 444 HV *hv = (HV *)SvRV(sv); 445 SV *message = *hv_fetch(hv, "text", 4, 0); 446 U32 categories = SvUVx(*hv_fetch(hv, "warn_categories", 15, 0));
|
/openbsd/usr.bin/mandoc/ |
H A D | mandoc_xr.c | 70 uint32_t hv; in mandoc_xr_add() local 89 hv = ohash_interval(xr->hashkey, &pend); in mandoc_xr_add() 90 slot = ohash_lookup_memory(xr_hash, xr->hashkey, tsz, hv); in mandoc_xr_add()
|