Home
last modified time | relevance | path

Searched refs:UNIT (Results 1 – 25 of 62) sorted by relevance

123

/third_party/musl/src/malloc/mallocng/
Ddonate.c14 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()
Dmalloc.c151 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 …]
Daligned_alloc.c12 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()
Dmeta.h14 #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()
Drealloc.c32 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/
Ddonate.c14 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()
Daligned_alloc.c19 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()
Dmalloc.c209 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 …]
Dmeta.h14 #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/
Dduration_test.cc126 #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/
Dmmap.c11 #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/
Dmalloc-modify-pointer.c31 #define UNIT 16 macro
57 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
Dmalloc-safe-unlink.c24 #define UNIT 16 macro
48 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
Dmalloc-encode-pointer.c24 #define UNIT 16 macro
48 struct group_in *base = (void *)(p - UNIT*offset - UNIT); in get_group()
/third_party/musl/src/malloc/oldmallocng/
Dmallinfo.c37 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/
DNumberRangeFormatterTest.java263 .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/
DNumberRangeFormatterTest.java267 .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/
Drun-perf-test.sh101 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/
DLdmlConverter.java21 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)
DLdmlConverterConfig.java36 UNIT(false), enumConstant
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DNumberRangeFormatter.java65 UNIT, enumConstant
DNumberRangeFormatterImpl.java254 case UNIT: in formatRange()
279 if (fCollapse == RangeCollapse.UNIT) { in formatRange()
/third_party/icu/icu4c/source/test/perf/collperf/
Dcollperf.cpp34 #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/
DNumberRangeFormatter.java69 UNIT, enumConstant
/third_party/rust/crates/syn/examples/lazy-static/
DREADME.md40 10 | static ref UNIT: () = ();

123