Home
last modified time | relevance | path

Searched refs:hm (Results 1 – 25 of 1122) sorted by relevance

12345678910>>...45

/third_party/iowow/src/utils/
Diwhmap.c66 IW_INLINE uint32_t _n_buckets(hmap_t *hm) { in _n_buckets() argument
67 return hm->buckets_mask + 1; in _n_buckets()
144 hmap_t *hm = malloc(sizeof(*hm)); in iwhmap_create() local
145 if (!hm) { in iwhmap_create()
148 hm->buckets = calloc(MIN_BUCKETS, sizeof(hm->buckets[0])); in iwhmap_create()
149 if (!hm->buckets) { in iwhmap_create()
150 free(hm); in iwhmap_create()
153 hm->cmp_fn = cmp_fn; in iwhmap_create()
154 hm->hash_key_fn = hash_key_fn; in iwhmap_create()
155 hm->kv_free_fn = kv_free_fn; in iwhmap_create()
[all …]
Diwhmap.h40 IWHMAP *hm; member
68 IW_EXPORT iwrc iwhmap_put(IWHMAP *hm, void *key, void *val);
70 IW_EXPORT iwrc iwhmap_put_u32(IWHMAP *hm, uint32_t key, void *val);
72 IW_EXPORT iwrc iwhmap_put_u64(IWHMAP *hm, uint64_t key, void *val);
76 IW_EXPORT iwrc iwhmap_put_str(IWHMAP *hm, const char *key, void *val);
78 IW_EXPORT iwrc iwhmap_rename(IWHMAP *hm, const void *key_old, void *key_new);
80 IW_EXPORT bool iwhmap_remove(IWHMAP *hm, const void *key);
82 IW_EXPORT bool iwhmap_remove_u64(IWHMAP *hm, uint64_t key);
84 IW_EXPORT bool iwhmap_remove_u32(IWHMAP *hm, uint32_t key);
86 IW_EXPORT void* iwhmap_get(IWHMAP *hm, const void *key);
[all …]
/third_party/iowow/src/utils/tests/
Diwhmap_test1.c55 IWHMAP *hm = iwhmap_create_str(iwhmap_kv_free); in test_basic_crud_str() local
56 CU_ASSERT_PTR_NOT_NULL_FATAL(hm); in test_basic_crud_str()
60 iwrc rc = iwhmap_put(hm, strdup(kbuf), strdup(vbuf)); in test_basic_crud_str()
66 const char *vp = iwhmap_get(hm, kbuf); in test_basic_crud_str()
70 iwhmap_remove(hm, kbuf); in test_basic_crud_str()
73 CU_ASSERT_EQUAL(iwhmap_count(hm), 5000); in test_basic_crud_str()
80 const char *vp = iwhmap_get(hm, kbuf); in test_basic_crud_str()
84 iwhmap_remove(hm, kbuf); in test_basic_crud_str()
87 CU_ASSERT_EQUAL(iwhmap_count(hm), 3333); in test_basic_crud_str()
90 iwhmap_destroy(hm); in test_basic_crud_str()
[all …]
/third_party/typescript/tests/baselines/reference/
DobjectTypeHidingMembersOfExtendedObject.types54 var r1c = r1b['hm']; // should be 'Object'
56 >r1b['hm'] : any
58 >'hm' : "hm"
60 var r1d = c['hm']; // should be 'any'
62 >c['hm'] : any
64 >'hm' : "hm"
93 var r2c = r2b['hm']; // should be 'Object'
95 >r2b['hm'] : any
97 >'hm' : "hm"
99 var r2d = i['hm']; // should be 'any'
[all …]
DextendNumberInterface.types22 var b: string = x.doOtherStuff('hm');
24 >x.doOtherStuff('hm') : "hm"
28 >'hm' : "hm"
37 var d: string = x['doOtherStuff']('hm');
39 >x['doOtherStuff']('hm') : "hm"
43 >'hm' : "hm"
DextendStringInterface.types22 var b: string = x.doOtherStuff('hm');
24 >x.doOtherStuff('hm') : "hm"
28 >'hm' : "hm"
37 var d: string = x['doOtherStuff']('hm');
39 >x['doOtherStuff']('hm') : "hm"
43 >'hm' : "hm"
DextendBooleanInterface.types22 var b: string = x.doOtherStuff('hm');
24 >x.doOtherStuff('hm') : "hm"
28 >'hm' : "hm"
37 var d: string = x['doOtherStuff']('hm');
39 >x['doOtherStuff']('hm') : "hm"
43 >'hm' : "hm"
DprimitiveConstraints1.types7 foo1<string, number>('hm', 1); // no error
8 >foo1<string, number>('hm', 1) : void
10 >'hm' : "hm"
18 foo2<number, string>(1, 'hm'); // error
19 >foo2<number, string>(1, 'hm') : void
22 >'hm' : "hm"
DoverloadOnConstInCallback1.types27 var hm = "hm";
28 >hm : string
29 >"hm" : "hm"
31 callback(hm);
32 >callback(hm) : number
34 >hm : string
DgenericCallWithObjectTypeArgsAndStringIndexer.types51 var d: Date = r2['hm']; // ok
53 >r2['hm'] : T
55 >'hm' : "hm"
72 var d: Date = r2['hm']; // ok
74 >r2['hm'] : T
76 >'hm' : "hm"
79 //var u: U = r2['hm']; // ok
85 // var d: Date = r2['hm']; // ok
87 // //var u: U = r2['hm']; // ok
DoverloadOnConstInCallback1.symbols23 var hm = "hm";
24 >hm : Symbol(hm, Decl(overloadOnConstInCallback1.ts, 5, 11))
26 callback(hm);
28 >hm : Symbol(hm, Decl(overloadOnConstInCallback1.ts, 5, 11))
DtypeParameterAsTypeParameterConstraintTransitively.types65 foo(a, b, { foo: 1, bar: '', hm: true });
66 >foo(a, b, { foo: 1, bar: '', hm: true }) : { foo: number; bar: string; hm: boolean; }
70 >{ foo: 1, bar: '', hm: true } : { foo: number; bar: string; hm: true; }
75 >hm : true
110 foo(b, b, { foo: 1, bar: '', hm: '' });
111 >foo(b, b, { foo: 1, bar: '', hm: '' }) : { foo: number; bar: string; hm: string; }
115 >{ foo: 1, bar: '', hm: '' } : { foo: number; bar: string; hm: string; }
120 >hm : string
DoverloadOnConstNoAnyImplementation.types30 var hm = 'hm';
31 >hm : string
32 >'hm' : "hm"
34 cb(hm);
35 >cb(hm) : number
37 >hm : string
DoverloadOnConstNoStringImplementation.types30 var hm = 'hm';
31 >hm : string
32 >'hm' : "hm"
34 cb(hm); // should this work without a string definition?
35 >cb(hm) : number
37 >hm : string
DoverloadOnConstNoStringImplementation2.types35 var hm = "hm";
36 >hm : string
37 >"hm" : "hm"
39 callback(hm);
40 >callback(hm) : number
42 >hm : string
DoverloadOnConstNoAnyImplementation2.types35 var hm = "hm";
36 >hm : string
37 >"hm" : "hm"
39 callback(hm);
40 >callback(hm) : number
42 >hm : string
DoverloadOnConstNoAnyImplementation.symbols26 var hm = 'hm';
27 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation.ts, 5, 7))
29 cb(hm);
31 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation.ts, 5, 7))
DoverloadOnConstNoStringImplementation.symbols26 var hm = 'hm';
27 >hm : Symbol(hm, Decl(overloadOnConstNoStringImplementation.ts, 5, 7))
29 cb(hm); // should this work without a string definition?
31 >hm : Symbol(hm, Decl(overloadOnConstNoStringImplementation.ts, 5, 7))
DobjectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types54 var r1e = i['hm']; // should be Object
56 >i['hm'] : error
58 >'hm' : "hm"
103 var r2e = x['hm']; // should be Object
105 >x['hm'] : error
107 >'hm' : "hm"
DobjectTypeWithCallSignatureHidingMembersOfExtendedFunction.types57 var r1e = i['hm']; // should be Object
59 >i['hm'] : error
61 >'hm' : "hm"
106 var r2e = x['hm']; // should be Object
108 >x['hm'] : error
110 >'hm' : "hm"
DoverloadOnConstInCallback1.js7 var hm = "hm";
8 callback(hm);
19 var hm = "hm";
20 callback(hm);
DoverloadOnConstNoAnyImplementation2.symbols33 var hm = "hm";
34 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation2.ts, 9, 11))
36 callback(hm);
38 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation2.ts, 9, 11))
DoverloadOnConstNoStringImplementation.js7 var hm = 'hm';
8 cb(hm); // should this work without a string definition?
22 var hm = 'hm';
23 cb(hm); // should this work without a string definition?
DoverloadOnConstNoAnyImplementation.js7 var hm = 'hm';
8 cb(hm);
22 var hm = 'hm';
23 cb(hm);
/third_party/libwebsockets/lib/misc/
Dieeehalfprecision.c91 uint16_t hs, he, hm; in lws_singles2halfp() local
138 hm = (uint16_t) 0u; // Set mantissa to zero in lws_singles2halfp()
141 hm = (uint16_t) (xm >> (14 - hes)); // Mantissa in lws_singles2halfp()
145 hm = (uint16_t)(hm + 1u); in lws_singles2halfp()
148 *hp = hs | hm; in lws_singles2halfp()
154 hm = (uint16_t)(xm >> 13); // Mantissa in lws_singles2halfp()
158 *hp = (uint16_t)((hs | he | hm) + (uint16_t)1u); in lws_singles2halfp()
160 *hp = hs | he | hm; // No rounding in lws_singles2halfp()
166 uint16_t hs, he, hm; in lws_halfp2singles() local
179 hm = h & 0x03FFu; // Pick off mantissa bits in lws_halfp2singles()
[all …]

12345678910>>...45