/third_party/musl/src/malloc/mallocng/ |
D | donate.c | 14 a += -a & (UNIT-1); in donate() 15 b -= b & (UNIT-1); in donate() 18 if (b-a < (size_classes[sc]+1)*UNIT) continue; in donate() 28 *((unsigned char *)m->mem+UNIT-4) = 0; in donate() 29 *((unsigned char *)m->mem+UNIT-3) = 255; in donate() 30 m->mem->storage[size_classes[sc]*UNIT-4] = 0; in donate() 32 a += (size_classes[sc]+1)*UNIT; in donate()
|
D | malloc.c | 151 int size = size_classes[m->sizeclass]*UNIT; in try_avail() 152 int span = UNIT + size*cnt; in try_avail() 176 size_t size = UNIT*size_classes[sc]; in alloc_group() 200 while (size*cnt >= 65536*UNIT) in alloc_group() 206 if (cnt==1 && size*cnt+UNIT <= pagesize/2) cnt = 2; in alloc_group() 210 if (size*cnt+UNIT > pagesize/2) { in alloc_group() 234 size_t needed = size*cnt + UNIT; in alloc_group() 241 req += IB + UNIT; in alloc_group() 243 if (req<size+UNIT || (req>=4*pagesize && 2*cnt>usage)) { in alloc_group() 256 active_idx = (4096-UNIT)/size-1; in alloc_group() [all …]
|
D | aligned_alloc.c | 12 if (len > SIZE_MAX - align || align >= (1ULL<<31)*UNIT) { in aligned_alloc() 22 if (align <= UNIT) align = UNIT; in aligned_alloc() 24 unsigned char *p = malloc(len + align - UNIT); in aligned_alloc() 40 uint32_t offset = (size_t)(p-g->mem->storage)/UNIT; in aligned_alloc() 57 *(uint16_t *)(start - 2) = (size_t)(p-start)/UNIT; in aligned_alloc()
|
D | meta.h | 14 #define UNIT 16 macro 20 char pad[UNIT - sizeof(struct meta *) - 1]; 139 const struct group *base = (const void *)(p - UNIT*offset - UNIT); in get_meta() 154 assert(offset <= meta->maplen*4096UL/UNIT - 1); in get_meta() 178 return g->maplen*4096UL - UNIT; in get_stride() 180 return UNIT*size_classes[g->sizeclass]; in get_stride() 199 size_t slack = (stride-IB-n)/UNIT; in enframe() 218 p += UNIT*off; in enframe() 223 *(uint16_t *)(p-2) = (size_t)(p-g->mem->storage)/UNIT; in enframe()
|
D | realloc.c | 32 size_t needed = (n + base + UNIT + IB + 4095) & -4096; in realloc() 39 end = g->mem->storage + (needed - UNIT) - IB; in realloc()
|
/third_party/musl/porting/linux/user/src/malloc/mallocng/ |
D | donate.c | 14 a += -a & (UNIT-1); in donate() 15 b -= b & (UNIT-1); in donate() 18 if (b-a < (size_classes[sc]+1)*UNIT) continue; in donate() 28 *((unsigned char *)m->mem+UNIT-4) = 0; in donate() 29 *((unsigned char *)m->mem+UNIT-3) = 255; in donate() 30 m->mem->storage[size_classes[sc]*UNIT-4] = 0; in donate() 32 a += (size_classes[sc]+1)*UNIT; in donate()
|
D | aligned_alloc.c | 19 if (len > SIZE_MAX - align || align >= (1ULL<<31)*UNIT) { in aligned_alloc() 29 if (align <= UNIT) align = UNIT; in aligned_alloc() 31 unsigned char *p = malloc(len + align - UNIT); in aligned_alloc() 47 uint32_t offset = (size_t)(p-g->mem->storage)/UNIT; in aligned_alloc() 64 *(uint16_t *)(start - 2) = (size_t)(p-start)/UNIT; in aligned_alloc()
|
D | malloc.c | 209 int size = size_classes[m->sizeclass]*UNIT; in try_avail() 210 int span = UNIT + size*cnt; in try_avail() 240 size_t size = UNIT*size_classes[sc]; in alloc_group() 264 while (size*cnt >= 65536*UNIT) in alloc_group() 270 if (cnt==1 && size*cnt+UNIT <= pagesize/2) cnt = 2; in alloc_group() 274 if (size*cnt+UNIT > pagesize/2) { in alloc_group() 298 size_t needed = size*cnt + UNIT; in alloc_group() 305 req += IB + UNIT; in alloc_group() 307 if (req<size+UNIT || (req>=4*pagesize && 2*cnt>usage)) { in alloc_group() 321 active_idx = (4096-UNIT)/size-1; in alloc_group() [all …]
|
D | meta.h | 14 #define UNIT 16 macro 20 char pad[UNIT - sizeof(struct meta *) - 1]; 154 const struct group *base = (const void *)(p - UNIT*offset - UNIT); in get_meta() 169 assert(offset <= meta->maplen*4096UL/UNIT - 1); in get_meta() 193 return g->maplen*4096UL - UNIT; in get_stride() 195 return UNIT*size_classes[g->sizeclass]; in get_stride() 214 size_t slack = (stride-IB-n)/UNIT; in enframe() 233 p += UNIT*off; in enframe() 238 *(uint16_t *)(p-2) = (size_t)(p-g->mem->storage)/UNIT; in enframe()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | duration_test.cc | 126 #define TEST_DURATION_CONVERSION(UNIT) \ in TEST() argument 128 const absl::Duration d = absl::UNIT(1.5); \ in TEST() 132 EXPECT_EQ(kint64min, absl::ToInt64##UNIT(-inf)); \ in TEST() 133 EXPECT_EQ(-1, absl::ToInt64##UNIT(-d)); \ in TEST() 134 EXPECT_EQ(0, absl::ToInt64##UNIT(z)); \ in TEST() 135 EXPECT_EQ(1, absl::ToInt64##UNIT(d)); \ in TEST() 136 EXPECT_EQ(kint64max, absl::ToInt64##UNIT(inf)); \ in TEST() 137 EXPECT_EQ(-dbl_inf, absl::ToDouble##UNIT(-inf)); \ in TEST() 138 EXPECT_EQ(-1.5, absl::ToDouble##UNIT(-d)); \ in TEST() 139 EXPECT_EQ(0, absl::ToDouble##UNIT(z)); \ in TEST() [all …]
|
/third_party/musl/src/mman/ |
D | mmap.c | 11 #define UNIT SYSCALL_MMAP2_UNIT macro 12 #define OFF_MASK ((-0x2000ULL << (8*sizeof(syscall_arg_t)-1)) | (UNIT-1)) 33 ret = __syscall(SYS_mmap2, start, len, prot, flags, fd, off/UNIT); in __mmap()
|
/third_party/musl/libc-test/src/regression/ |
D | malloc-modify-pointer.c | 31 #define UNIT 16 macro 57 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
|
D | malloc-safe-unlink.c | 24 #define UNIT 16 macro 48 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
|
D | malloc-encode-pointer.c | 24 #define UNIT 16 macro 48 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
|
/third_party/musl/src/malloc/oldmallocng/ |
D | mallinfo.c | 37 int outer_sz = size_classes[outer_sc]*UNIT; 40 int sz = size_classes[sc]*UNIT;
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 263 .collapse(RangeCollapse.UNIT) in testCollapse() 336 .collapse(RangeCollapse.UNIT) in testCollapse() 395 .collapse(RangeCollapse.UNIT) in testCollapse() 445 .collapse(RangeCollapse.UNIT) in testCollapse() 495 .collapse(RangeCollapse.UNIT) in testCollapse()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 267 .collapse(RangeCollapse.UNIT) in testCollapse() 340 .collapse(RangeCollapse.UNIT) in testCollapse() 399 .collapse(RangeCollapse.UNIT) in testCollapse() 449 .collapse(RangeCollapse.UNIT) in testCollapse() 499 .collapse(RangeCollapse.UNIT) in testCollapse()
|
/third_party/jerryscript/tools/ |
D | run-perf-test.sh | 101 UNIT=$5 103 ABS_FP_FMT="%$((PRECISION + 4)).$((PRECISION))f$UNIT"
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
D | LdmlConverter.java | 21 import static org.unicode.icu.tool.cldrtoicu.LdmlConverterConfig.IcuLocaleDir.UNIT; 189 .putAll(OutputType.LOCALES, CURR, LANG, LOCALES, REGION, UNIT, ZONE) 688 .put("durationUnits", UNIT) 689 .put("units", UNIT) 690 .put("unitsShort", UNIT) 691 .put("unitsNarrow", UNIT)
|
D | LdmlConverterConfig.java | 36 UNIT(false), enumConstant
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberRangeFormatter.java | 65 UNIT, enumConstant
|
D | NumberRangeFormatterImpl.java | 254 case UNIT: in formatRange() 279 if (fCollapse == RangeCollapse.UNIT) { in formatRange()
|
/third_party/icu/icu4c/source/test/perf/collperf/ |
D | collperf.cpp | 34 #define COMPATCT_ARRAY(CompactArrays, UNIT) \ argument 40 UNIT * data; /*the real space to hold strings*/ \ 51 data = (UNIT *) realloc(data, sizeof(UNIT) * index[count]); \ 53 UNIT * last(){return data + index[count - 1];} \ 54 UNIT * dataOf(int32_t i){return data + index[i];} \
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberRangeFormatter.java | 69 UNIT, enumConstant
|
/third_party/rust/crates/syn/examples/lazy-static/ |
D | README.md | 40 10 | static ref UNIT: () = ();
|