/third_party/iowow/src/utils/ |
D | iwhmap.c | 46 IW_INLINE uint32_t _n_buckets(hmap_t *hm) { in _n_buckets() argument 47 return hm->buckets_mask + 1; in _n_buckets() 123 hmap_t *hm = malloc(sizeof(*hm)); in iwhmap_create() local 124 if (!hm) { in iwhmap_create() 127 hm->buckets = calloc(MIN_BUCKETS, sizeof(hm->buckets[0])); in iwhmap_create() 128 if (!hm->buckets) { in iwhmap_create() 129 free(hm); in iwhmap_create() 132 hm->cmp_fn = cmp_fn; in iwhmap_create() 133 hm->hash_key_fn = hash_key_fn; in iwhmap_create() 134 hm->kv_free_fn = kv_free_fn; in iwhmap_create() [all …]
|
D | iwhmap.h | 40 IWHMAP *hm; member 65 IW_EXPORT iwrc iwhmap_put(IWHMAP *hm, void *key, void *val); 67 IW_EXPORT void iwhmap_remove(IWHMAP *hm, const void *key); 69 IW_EXPORT void *iwhmap_get(IWHMAP *hm, const void *key); 71 IW_EXPORT int iwhmap_count(IWHMAP *hm); 73 IW_EXPORT void iwhmap_clear(IWHMAP *hm); 75 IW_EXPORT void iwhmap_iter_init(IWHMAP *hm, IWHMAP_ITER *iter); 79 IW_EXPORT void iwhmap_destroy(IWHMAP *hm);
|
/third_party/libwebsockets/lib/misc/ |
D | ieeehalfprecision.c | 91 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 …]
|
/third_party/typescript/tests/baselines/reference/ |
D | objectTypeHidingMembersOfExtendedObject.types | 54 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 …]
|
D | extendBooleanInterface.types | 22 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"
|
D | extendStringInterface.types | 22 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"
|
D | extendNumberInterface.types | 22 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"
|
D | overloadOnConstInCallback1.types | 27 var hm = "hm"; 28 >hm : string 29 >"hm" : "hm" 31 callback(hm); 32 >callback(hm) : number 34 >hm : string
|
D | primitiveConstraints1.types | 7 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"
|
D | genericCallWithObjectTypeArgsAndStringIndexer.types | 51 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
|
D | overloadOnConstInCallback1.symbols | 23 var hm = "hm"; 24 >hm : Symbol(hm, Decl(overloadOnConstInCallback1.ts, 5, 11)) 26 callback(hm); 28 >hm : Symbol(hm, Decl(overloadOnConstInCallback1.ts, 5, 11))
|
D | typeParameterAsTypeParameterConstraintTransitively.types | 65 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
|
D | overloadOnConstNoAnyImplementation.types | 30 var hm = 'hm'; 31 >hm : string 32 >'hm' : "hm" 34 cb(hm); 35 >cb(hm) : number 37 >hm : string
|
D | overloadOnConstNoStringImplementation.types | 30 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
|
D | overloadOnConstNoStringImplementation2.types | 35 var hm = "hm"; 36 >hm : string 37 >"hm" : "hm" 39 callback(hm); 40 >callback(hm) : number 42 >hm : string
|
D | overloadOnConstNoAnyImplementation2.types | 35 var hm = "hm"; 36 >hm : string 37 >"hm" : "hm" 39 callback(hm); 40 >callback(hm) : number 42 >hm : string
|
D | overloadOnConstInCallback1.js | 7 var hm = "hm"; 8 callback(hm); 19 var hm = "hm"; 20 callback(hm);
|
D | overloadOnConstNoAnyImplementation.symbols | 26 var hm = 'hm'; 27 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation.ts, 5, 7)) 29 cb(hm); 31 >hm : Symbol(hm, Decl(overloadOnConstNoAnyImplementation.ts, 5, 7))
|
D | overloadOnConstNoStringImplementation.symbols | 26 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))
|
D | overloadOnConstNoAnyImplementation.js | 7 var hm = 'hm'; 8 cb(hm); 22 var hm = 'hm'; 23 cb(hm);
|
D | overloadOnConstNoStringImplementation.js | 7 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?
|
D | objectTypeWithCallSignatureHidingMembersOfExtendedFunction.types | 57 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"
|
D | objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types | 54 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"
|
/third_party/iowow/src/utils/tests/ |
D | iwhmap_test1.c | 56 IWHMAP *hm = iwhmap_create_str(iwhmap_kv_free); in test_basic_crud_str() local 57 CU_ASSERT_PTR_NOT_NULL_FATAL(hm); in test_basic_crud_str() 61 iwrc rc = iwhmap_put(hm, strdup(kbuf), strdup(vbuf)); in test_basic_crud_str() 67 const char *vp = iwhmap_get(hm, kbuf); in test_basic_crud_str() 71 iwhmap_remove(hm, kbuf); in test_basic_crud_str() 74 CU_ASSERT_EQUAL(iwhmap_count(hm), 5000); in test_basic_crud_str() 81 const char *vp = iwhmap_get(hm, kbuf); in test_basic_crud_str() 85 iwhmap_remove(hm, kbuf); in test_basic_crud_str() 88 CU_ASSERT_EQUAL(iwhmap_count(hm), 3333); in test_basic_crud_str() 92 iwhmap_destroy(hm); in test_basic_crud_str()
|
/third_party/boost/libs/spirit/classic/test/actor/ |
D | assign_test.cpp | 26 int hm=h; in assign_test() local 31 hit = int_p[ assign_a(hm)].parse(scan); in assign_test() 36 BOOST_CHECK_EQUAL( hm,h); in assign_test() 48 int hm=63; in assign_test_ref() local 53 hit = int_p[ assign_a(h,hm)].parse(scan); in assign_test_ref() 57 BOOST_CHECK_EQUAL( hm,h); in assign_test_ref()
|