/external/valgrind/memcheck/ |
D | mc_machine.c | 124 Int sz = szB; in get_otrack_shadow_offset_wrk() local 126 tl_assert(sz > 0); in get_otrack_shadow_offset_wrk() 134 if (sz == 8 || sz == 4) { in get_otrack_shadow_offset_wrk() 143 Int ox = sz == 8 ? o : (o - 4); in get_otrack_shadow_offset_wrk() 179 if (o == GOF(LR) && sz == 8) return o; in get_otrack_shadow_offset_wrk() 180 if (o == GOF(CTR) && sz == 8) return o; in get_otrack_shadow_offset_wrk() 182 if (o == GOF(CIA) && sz == 8) return -1; in get_otrack_shadow_offset_wrk() 183 if (o == GOF(IP_AT_SYSCALL) && sz == 8) return -1; /* slot unused */ in get_otrack_shadow_offset_wrk() 184 if (o == GOF(FPROUND) && sz == 1) return -1; in get_otrack_shadow_offset_wrk() 185 if (o == GOF(DFPROUND) && sz == 1) return -1; in get_otrack_shadow_offset_wrk() [all …]
|
/external/libvpx/libvpx/vpx_ports/ |
D | mem_ops_aligned.h | 46 #define mem_get_ne_aligned_generic(end,sz) \ argument 48 mem_get_##end##sz##_aligned(const void *vmem) {\ 49 const uint##sz##_t *mem = (const uint##sz##_t *)vmem;\ 53 #define mem_get_sne_aligned_generic(end,sz) \ argument 55 mem_get_s##end##sz##_aligned(const void *vmem) {\ 56 const int##sz##_t *mem = (const int##sz##_t *)vmem;\ 60 #define mem_get_se_aligned_generic(end,sz) \ argument 62 mem_get_##end##sz##_aligned(const void *vmem) {\ 63 const uint##sz##_t *mem = (const uint##sz##_t *)vmem;\ 65 swap_endian_##sz(val,raw);\ [all …]
|
/external/jemalloc/test/unit/ |
D | stats.c | 6 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local 9 sz = sizeof(cactive); in TEST_BEGIN() 10 assert_d_eq(mallctl("stats.cactive", &cactive, &sz, NULL, 0), expected, in TEST_BEGIN() 13 sz = sizeof(size_t); in TEST_BEGIN() 14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN() 16 assert_d_eq(mallctl("stats.active", &active, &sz, NULL, 0), expected, in TEST_BEGIN() 18 assert_d_eq(mallctl("stats.resident", &resident, &sz, NULL, 0), in TEST_BEGIN() 20 assert_d_eq(mallctl("stats.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN() 42 size_t sz; in TEST_BEGIN() local 51 sz = sizeof(size_t); in TEST_BEGIN() [all …]
|
D | mallctl.c | 6 size_t sz; in TEST_BEGIN() local 20 sz = sizeof(epoch)-1; in TEST_BEGIN() 21 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 23 sz = sizeof(epoch)+1; in TEST_BEGIN() 24 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 43 size_t sz; in TEST_BEGIN() local 66 sz = sizeof(epoch)-1; in TEST_BEGIN() 67 assert_d_eq(mallctlbymib(mib, miblen, &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 69 sz = sizeof(epoch)+1; in TEST_BEGIN() 70 assert_d_eq(mallctlbymib(mib, miblen, &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() [all …]
|
D | decay.c | 25 size_t sz, huge0, large0; in TEST_BEGIN() local 34 sz = sizeof(size_t); in TEST_BEGIN() 35 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN() 37 assert_d_eq(mallctl("arenas.lrun.0.size", &large0, &sz, NULL, 0), 0, in TEST_BEGIN() 115 sz = allocx_sizes[i]; in TEST_BEGIN() 119 p = mallocx(sz, MALLOCX_TCACHE_NONE); in TEST_BEGIN() 124 sz); in TEST_BEGIN() 127 p = rallocx(p, sz, MALLOCX_TCACHE_NONE); in TEST_BEGIN() 132 sz); in TEST_BEGIN() 135 xallocx(p, sz, 0, MALLOCX_TCACHE_NONE); in TEST_BEGIN() [all …]
|
D | run_quantize.c | 6 size_t sz, run_size; in TEST_BEGIN() local 15 sz = sizeof(unsigned); in TEST_BEGIN() 16 assert_d_eq(mallctl("arenas.nbins", &nbins, &sz, NULL, 0), 0, in TEST_BEGIN() 23 sz = sizeof(size_t); in TEST_BEGIN() 24 assert_d_eq(mallctlbymib(mib, miblen, &run_size, &sz, NULL, 0), in TEST_BEGIN() 40 size_t sz, run_size_prev, ceil_prev; in TEST_BEGIN() local 49 sz = sizeof(bool); in TEST_BEGIN() 50 assert_d_eq(mallctl("config.cache_oblivious", &cache_oblivious, &sz, in TEST_BEGIN() 53 sz = sizeof(unsigned); in TEST_BEGIN() 54 assert_d_eq(mallctl("arenas.nlruns", &nlruns, &sz, NULL, 0), 0, in TEST_BEGIN() [all …]
|
/external/jemalloc/test/integration/ |
D | iterate.c | 26 size_t sz; in TEST_BEGIN() local 28 for (sz = 1; sz < MAXSZ; sz <<= 1) { in TEST_BEGIN() 30 ptr = malloc(sz); in TEST_BEGIN() 31 assert_ptr_not_null(ptr, "malloc() failed for size %zu", sz); in TEST_BEGIN() 36 alloc_find_size = sz; in TEST_BEGIN() 41 assert(je_iterate((uintptr_t)ptr, sz, callback, NULL) == 0); in TEST_BEGIN() 55 size_t sz; in TEST_BEGIN() local 57 for (sz = 1; sz < MAXSZ; sz <<= 1) { in TEST_BEGIN() 59 ptr = malloc(sz); in TEST_BEGIN() 61 assert_ptr_not_null(ptr, "malloc() failed for size %zu", sz); in TEST_BEGIN() [all …]
|
D | thread_tcache_enabled.c | 15 size_t sz; in thd_start() local 18 sz = sizeof(bool); in thd_start() 19 if ((err = mallctl("thread.tcache.enabled", &e0, &sz, NULL, 0))) { in thd_start() 30 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), in thd_start() 36 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 41 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 46 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 51 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 57 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() 63 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start() [all …]
|
D | mallocx.c | 107 size_t sz; in TEST_BEGIN() local 109 for (sz = 1; sz < MAXSZ; sz = nallocx(sz, 0) + 1) { in TEST_BEGIN() 112 nsz = nallocx(sz, 0); in TEST_BEGIN() 114 p = mallocx(sz, 0); in TEST_BEGIN() 117 assert_zu_ge(rsz, sz, "Real size smaller than expected"); in TEST_BEGIN() 121 p = mallocx(sz, 0); in TEST_BEGIN() 125 nsz = nallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() 127 p = mallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() 141 size_t nsz, rsz, sz, alignment, total; in TEST_BEGIN() local 152 for (sz = 1; in TEST_BEGIN() [all …]
|
D | xallocx.c | 14 size_t sz = sizeof(ind); in arena_ind() local 15 assert_d_eq(mallctl("arenas.extend", &ind, &sz, NULL, 0), 0, in arena_ind() 25 size_t sz, tsz; in TEST_BEGIN() local 29 sz = sallocx(p, 0); in TEST_BEGIN() 31 tsz = xallocx(p, sz, 0, 0); in TEST_BEGIN() 32 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 41 size_t sz, tsz; in TEST_BEGIN() local 45 sz = sallocx(p, 0); in TEST_BEGIN() 47 tsz = xallocx(p, sz, sz-42, 0); in TEST_BEGIN() 48 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() [all …]
|
D | allocated.c | 18 size_t sz, usize; in thd_start() local 20 sz = sizeof(a0); in thd_start() 21 if ((err = mallctl("thread.allocated", &a0, &sz, NULL, 0))) { in thd_start() 27 sz = sizeof(ap0); in thd_start() 28 if ((err = mallctl("thread.allocatedp", &ap0, &sz, NULL, 0))) { in thd_start() 38 sz = sizeof(d0); in thd_start() 39 if ((err = mallctl("thread.deallocated", &d0, &sz, NULL, 0))) { in thd_start() 45 sz = sizeof(dp0); in thd_start() 46 if ((err = mallctl("thread.deallocatedp", &dp0, &sz, NULL, 0))) { in thd_start() 59 sz = sizeof(a1); in thd_start() [all …]
|
/external/opencv3/modules/core/perf/ |
D | perf_arithm.cpp | 15 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 17 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 18 cv::Mat b = Mat(sz, type); in PERF_TEST_P() 19 cv::Mat c = Mat(sz, type); in PERF_TEST_P() 30 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 32 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 34 cv::Mat c = Mat(sz, type); in PERF_TEST_P() 45 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 47 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 48 cv::Mat b = Mat(sz, type); in PERF_TEST_P() [all …]
|
D | perf_norm.cpp | 22 Size sz = get<0>(GetParam()); variable 26 Mat src(sz, matType); 44 Size sz = get<0>(GetParam()); variable 48 Mat src(sz, matType); 49 Mat mask = Mat::ones(sz, CV_8U); 67 Size sz = get<0>(GetParam()); variable 71 Mat src1(sz, matType); 72 Mat src2(sz, matType); 90 Size sz = get<0>(GetParam()); variable 94 Mat src1(sz, matType); [all …]
|
D | perf_bitwise.cpp | 15 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 18 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 19 cv::Mat c = Mat(sz, type); in PERF_TEST_P() 31 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 33 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 34 cv::Mat b = Mat(sz, type); in PERF_TEST_P() 35 cv::Mat c = Mat(sz, type); in PERF_TEST_P() 47 Size sz = get<0>(GetParam()); in PERF_TEST_P() local 49 cv::Mat a = Mat(sz, type); in PERF_TEST_P() 50 cv::Mat b = Mat(sz, type); in PERF_TEST_P() [all …]
|
/external/libvpx/libvpx/vp8/common/ |
D | reconintra.c | 35 #define INIT_SIZE(sz) \ in vp8_init_intra_predictors_internal() argument 36 pred[V_PRED][SIZE_##sz] = vpx_v_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 37 pred[H_PRED][SIZE_##sz] = vpx_h_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 38 pred[TM_PRED][SIZE_##sz] = vpx_tm_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 40 dc_pred[0][0][SIZE_##sz] = vpx_dc_128_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 41 dc_pred[0][1][SIZE_##sz] = vpx_dc_top_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 42 dc_pred[1][0][SIZE_##sz] = vpx_dc_left_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 43 dc_pred[1][1][SIZE_##sz] = vpx_dc_predictor_##sz##x##sz in vp8_init_intra_predictors_internal()
|
/external/mesa3d/src/mesa/sparc/ |
D | sparc.c | 46 #define DECLARE_XFORM_GROUP(pfx, sz) \ argument 47 extern void _mesa_##pfx##_transform_points##sz##_general(XFORM_ARGS); \ 48 extern void _mesa_##pfx##_transform_points##sz##_identity(XFORM_ARGS); \ 49 extern void _mesa_##pfx##_transform_points##sz##_3d_no_rot(XFORM_ARGS); \ 50 extern void _mesa_##pfx##_transform_points##sz##_perspective(XFORM_ARGS); \ 51 extern void _mesa_##pfx##_transform_points##sz##_2d(XFORM_ARGS); \ 52 extern void _mesa_##pfx##_transform_points##sz##_2d_no_rot(XFORM_ARGS); \ 53 extern void _mesa_##pfx##_transform_points##sz##_3d(XFORM_ARGS); 55 #define ASSIGN_XFORM_GROUP(pfx, sz) \ argument 56 _mesa_transform_tab[sz][MATRIX_GENERAL] = \ [all …]
|
/external/mesa3d/src/mesa/x86/ |
D | x86_xform.h | 41 #define DECLARE_XFORM_GROUP( pfx, sz ) \ argument 42 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_general( XFORM_ARGS ); \ 43 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_identity( XFORM_ARGS ); \ 44 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_3d_no_rot( XFORM_ARGS ); \ 45 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_perspective( XFORM_ARGS ); \ 46 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_2d( XFORM_ARGS ); \ 47 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_2d_no_rot( XFORM_ARGS ); \ 48 extern void _ASMAPI _mesa_##pfx##_transform_points##sz##_3d( XFORM_ARGS ); 50 #define ASSIGN_XFORM_GROUP( pfx, sz ) \ argument 51 _mesa_transform_tab[sz][MATRIX_GENERAL] = \ [all …]
|
/external/ltrace/sysdeps/linux-gnu/aarch64/ |
D | fetch.c | 79 fetch_gpr(struct fetch_context *context, struct value *value, size_t sz) in fetch_gpr() argument 81 if (sz < 8) in fetch_gpr() 82 sz = 8; in fetch_gpr() 84 unsigned char *buf = value_reserve(value, sz); in fetch_gpr() 89 for (i = 0; i < sz; i += 8) in fetch_gpr() 96 fetch_next_sse(struct fetch_context *context, unsigned char *buf, size_t sz) in fetch_next_sse() argument 99 memcpy(buf, &u, sz); in fetch_next_sse() 103 fetch_sse(struct fetch_context *context, struct value *value, size_t sz) in fetch_sse() argument 105 unsigned char *buf = value_reserve(value, sz); in fetch_sse() 109 fetch_next_sse(context, buf, sz); in fetch_sse() [all …]
|
/external/ltrace/sysdeps/linux-gnu/s390/ |
D | fetch.c | 128 size_t sz) in allocate_stack_slot() argument 136 assert(sz <= 8); in allocate_stack_slot() 140 assert(sz <= 8); in allocate_stack_slot() 144 size_t off = sz < a ? a - sz : 0; in allocate_stack_slot() 147 ctx->stack_pointer += sz > a ? sz : a; in allocate_stack_slot() 160 size_t sz) in allocate_gpr() argument 163 return allocate_stack_slot(ctx, proc, info, valuep, sz); in allocate_gpr() 172 size_t sz) in allocate_gpr_pair() argument 175 assert(sz <= 8); in allocate_gpr_pair() 179 return allocate_stack_slot(ctx, proc, info, valuep, sz); in allocate_gpr_pair() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | debugrm.h | 41 #define racoon_malloc(sz) malloc((sz)) argument 44 #define racoon_calloc(cnt, sz) calloc((cnt), (sz)) argument 47 #define racoon_realloc(old, sz) realloc((old), (sz)) argument 57 #define racoon_malloc(sz) \ argument 58 DRM_malloc(__FILE__, __LINE__, __func__, (sz)) 61 #define racoon_calloc(cnt, sz) \ argument 62 DRM_calloc(__FILE__, __LINE__, __func__, (cnt), (sz)) 65 #define racoon_realloc(old, sz) \ argument 66 DRM_realloc(__FILE__, __LINE__, __func__, (old), (sz)) 87 #define vmalloc(sz) \ argument [all …]
|
D | gcmalloc.h | 91 #define racoon_malloc(sz) GC_debug_malloc(sz, GC_EXTRAS) argument 92 #define racoon_calloc(cnt, sz) GC_debug_malloc(cnt * sz, GC_EXTRAS) argument 93 #define racoon_realloc(old, sz) GC_debug_realloc(old, sz, GC_EXTRAS) argument 111 #define racoon_malloc(sz) malloc((sz)) argument 114 #define racoon_calloc(cnt, sz) calloc((cnt), (sz)) argument 117 #define racoon_realloc(old, sz) realloc((old), (sz)) argument
|
/external/ltrace/sysdeps/linux-gnu/m68k/ |
D | fetch.c | 77 size_t sz = type_sizeof(proc, ret_info); in arch_fetch_arg_init() local 78 if (sz == (size_t)-1) in arch_fetch_arg_init() 81 if (ret_info->type == ARGTYPE_STRUCT && !(sz <= 4 || sz == 8)) { in arch_fetch_arg_init() 109 size_t sz = type_sizeof(proc, info); in arch_fetch_arg_next() local 110 if (sz == (size_t)-1) in arch_fetch_arg_next() 134 if (sz < 4) in arch_fetch_arg_next() 135 context->stack_pointer += 4 - sz; in arch_fetch_arg_next() 138 context->stack_pointer += sz; in arch_fetch_arg_next() 159 size_t sz = type_sizeof(proc, info); in arch_fetch_retval() local 160 if (sz == (size_t)-1) in arch_fetch_retval() [all …]
|
/external/libevent/ |
D | mm-internal.h | 39 void *event_mm_malloc_(size_t sz); 42 void *event_mm_realloc_(void *p, size_t sz); 44 #define mm_malloc(sz) event_mm_malloc_(sz) argument 47 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument 50 #define mm_malloc(sz) malloc(sz) 51 #define mm_calloc(n, sz) calloc((n), (sz)) 53 #define mm_realloc(p, sz) realloc((p), (sz))
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_sync.cc | 63 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock() argument 66 b->siz = sz; in AllocBlock() 78 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock() local 79 FreeRange(thr, pc, p, sz); in FreeBlock() 80 return sz; in FreeBlock() 83 bool MetaMap::FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz) { in FreeRange() argument 86 u32 *end = MemToMeta(p + sz); in FreeRange() 122 void MetaMap::ResetRange(ThreadState *thr, uptr pc, uptr p, uptr sz) { in ResetRange() argument 125 if (sz <= 4 * kPageSize) { in ResetRange() 127 FreeRange(thr, pc, p, sz); in ResetRange() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
D | SwitchData.java | 77 int sz = cases.size(); in SwitchData() local 79 if (sz != targets.length) { in SwitchData() 83 if (sz > 65535) { in SwitchData() 105 int sz = targets.length; in writeTo() local 108 int firstCase = (sz == 0) ? 0 : cases.get(0); in writeTo() 109 int lastCase = (sz == 0) ? 0 : cases.get(sz - 1); in writeTo() 133 out.writeShort(sz); in writeTo() 135 for (int i = 0; i < sz; i++) { in writeTo() 139 for (int i = 0; i < sz; i++) { in writeTo() 166 int sz = targets.length; in argString() local [all …]
|