/external/libaom/libaom/aom_ports/ |
D | mem_ops_aligned.h | 47 #define mem_get_ne_aligned_generic(end, sz) \ argument 48 static AOM_INLINE unsigned MEM_VALUE_T mem_get_##end##sz##_aligned( \ 50 const uint##sz##_t *mem = (const uint##sz##_t *)vmem; \ 54 #define mem_get_sne_aligned_generic(end, sz) \ argument 55 static AOM_INLINE signed MEM_VALUE_T mem_get_s##end##sz##_aligned( \ 57 const int##sz##_t *mem = (const int##sz##_t *)vmem; \ 61 #define mem_get_se_aligned_generic(end, sz) \ argument 62 static AOM_INLINE unsigned MEM_VALUE_T mem_get_##end##sz##_aligned( \ 64 const uint##sz##_t *mem = (const uint##sz##_t *)vmem; \ 66 swap_endian_##sz(val, raw); \ [all …]
|
/external/libvpx/libvpx/vpx_ports/ |
D | mem_ops_aligned.h | 46 #define mem_get_ne_aligned_generic(end, sz) \ argument 47 static VPX_INLINE unsigned MEM_VALUE_T mem_get_##end##sz##_aligned( \ 49 const uint##sz##_t *mem = (const uint##sz##_t *)vmem; \ 53 #define mem_get_sne_aligned_generic(end, sz) \ argument 54 static VPX_INLINE signed MEM_VALUE_T mem_get_s##end##sz##_aligned( \ 56 const int##sz##_t *mem = (const int##sz##_t *)vmem; \ 60 #define mem_get_se_aligned_generic(end, sz) \ argument 61 static VPX_INLINE unsigned MEM_VALUE_T mem_get_##end##sz##_aligned( \ 63 const uint##sz##_t *mem = (const uint##sz##_t *)vmem; \ 65 swap_endian_##sz(val, raw); \ [all …]
|
/external/jemalloc_new/test/unit/ |
D | stats.c | 4 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local 7 sz = sizeof(size_t); in TEST_BEGIN() 8 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN() 10 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), in TEST_BEGIN() 12 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), in TEST_BEGIN() 14 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), in TEST_BEGIN() 33 size_t sz; in TEST_BEGIN() local 42 sz = sizeof(size_t); in TEST_BEGIN() 44 (void *)&allocated, &sz, NULL, 0), expected, in TEST_BEGIN() 46 sz = sizeof(uint64_t); in TEST_BEGIN() [all …]
|
D | mallctl.c | 7 size_t sz; in TEST_BEGIN() local 23 sz = sizeof(epoch)-1; in TEST_BEGIN() 24 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 26 sz = sizeof(epoch)+1; in TEST_BEGIN() 27 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 44 size_t sz; in TEST_BEGIN() local 67 sz = sizeof(epoch)-1; in TEST_BEGIN() 68 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN() 71 sz = sizeof(epoch)+1; in TEST_BEGIN() 72 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN() [all …]
|
D | decay.c | 15 size_t sz = sizeof(bool); in check_background_thread_enabled() local 16 int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0); in check_background_thread_enabled() 41 size_t sz = sizeof(unsigned); in do_arena_create() local 42 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in do_arena_create() 112 size_t sz = sizeof(npurge); in get_arena_npurge_impl() local 113 assert_d_eq(mallctlbymib(mib, miblen, (void *)&npurge, &sz, NULL, 0), in get_arena_npurge_impl() 146 size_t sz = sizeof(pdirty); in get_arena_pdirty() local 147 assert_d_eq(mallctlbymib(mib, miblen, (void *)&pdirty, &sz, NULL, 0), 0, in get_arena_pdirty() 161 size_t sz = sizeof(pmuzzy); in get_arena_pmuzzy() local 162 assert_d_eq(mallctlbymib(mib, miblen, (void *)&pmuzzy, &sz, NULL, 0), 0, in get_arena_pmuzzy() [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", (void *)&cactive, &sz, NULL, 0), in TEST_BEGIN() 13 sz = sizeof(size_t); in TEST_BEGIN() 14 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN() 16 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), in TEST_BEGIN() 18 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), in TEST_BEGIN() 20 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), 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 22 sz = sizeof(epoch)-1; in TEST_BEGIN() 23 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 25 sz = sizeof(epoch)+1; in TEST_BEGIN() 26 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 45 size_t sz; in TEST_BEGIN() local 68 sz = sizeof(epoch)-1; in TEST_BEGIN() 69 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN() 72 sz = sizeof(epoch)+1; in TEST_BEGIN() 73 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN() [all …]
|
D | decay.c | 33 size_t sz, huge0, large0; in TEST_BEGIN() local 42 sz = sizeof(size_t); in TEST_BEGIN() 43 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, in TEST_BEGIN() 45 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large0, &sz, NULL, in TEST_BEGIN() 123 sz = allocx_sizes[i]; in TEST_BEGIN() 127 p = mallocx(sz, MALLOCX_TCACHE_NONE); in TEST_BEGIN() 132 sz); in TEST_BEGIN() 135 p = rallocx(p, sz, MALLOCX_TCACHE_NONE); in TEST_BEGIN() 140 sz); in TEST_BEGIN() 143 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", (void *)&nbins, &sz, NULL, 0), 0, in TEST_BEGIN() 23 sz = sizeof(size_t); in TEST_BEGIN() 24 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, in TEST_BEGIN() 40 size_t sz, run_size_prev, ceil_prev; in TEST_BEGIN() local 49 sz = sizeof(bool); in TEST_BEGIN() 51 &sz, NULL, 0), 0, "Unexpected mallctl failure"); in TEST_BEGIN() 53 sz = sizeof(unsigned); in TEST_BEGIN() 54 assert_d_eq(mallctl("arenas.nlruns", (void *)&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", (void *)&e0, &sz, NULL, in thd_start() 31 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 32 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 37 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 38 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 42 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 43 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 47 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() [all …]
|
D | mallocx.c | 131 size_t sz; in TEST_BEGIN() local 133 for (sz = 1; sz < MAXSZ; sz = nallocx(sz, 0) + 1) { in TEST_BEGIN() 136 nsz = nallocx(sz, 0); in TEST_BEGIN() 138 p = mallocx(sz, 0); in TEST_BEGIN() 140 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN() 142 assert_zu_ge(rsz, sz, "Real size smaller than expected"); in TEST_BEGIN() 146 p = mallocx(sz, 0); in TEST_BEGIN() 148 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN() 151 nsz = nallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() 153 p = mallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() [all …]
|
D | xallocx.c | 18 size_t sz = sizeof(ind); in arena_ind() local 19 assert_d_eq(mallctl("arenas.extend", (void *)&ind, &sz, NULL, in arena_ind() 29 size_t sz, tsz; in TEST_BEGIN() local 33 sz = sallocx(p, 0); in TEST_BEGIN() 35 tsz = xallocx(p, sz, 0, 0); in TEST_BEGIN() 36 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 45 size_t sz, tsz; in TEST_BEGIN() local 49 sz = sallocx(p, 0); in TEST_BEGIN() 51 tsz = xallocx(p, sz, sz-42, 0); in TEST_BEGIN() 52 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", (void *)&a0, &sz, NULL, 0))) { in thd_start() 27 sz = sizeof(ap0); in thd_start() 28 if ((err = mallctl("thread.allocatedp", (void *)&ap0, &sz, NULL, 0))) { in thd_start() 38 sz = sizeof(d0); in thd_start() 39 if ((err = mallctl("thread.deallocated", (void *)&d0, &sz, NULL, 0))) { in thd_start() 45 sz = sizeof(dp0); in thd_start() 46 if ((err = mallctl("thread.deallocatedp", (void *)&dp0, &sz, NULL, in thd_start() 60 sz = sizeof(a1); in thd_start() [all …]
|
/external/jemalloc_new/test/integration/ |
D | xallocx.c | 13 size_t sz = sizeof(ind); in arena_ind() local 14 assert_d_eq(mallctl("arenas.create", (void *)&ind, &sz, NULL, in arena_ind() 23 size_t sz, tsz; in TEST_BEGIN() local 27 sz = sallocx(p, 0); in TEST_BEGIN() 29 tsz = xallocx(p, sz, 0, 0); in TEST_BEGIN() 30 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 38 size_t sz, tsz; in TEST_BEGIN() local 42 sz = sallocx(p, 0); in TEST_BEGIN() 44 tsz = xallocx(p, sz, sz-42, 0); in TEST_BEGIN() 45 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() [all …]
|
D | mallocx.c | 118 size_t sz; in TEST_BEGIN() local 120 for (sz = 1; sz < MAXSZ; sz = nallocx(sz, 0) + 1) { in TEST_BEGIN() 123 nsz = nallocx(sz, 0); in TEST_BEGIN() 125 p = mallocx(sz, 0); in TEST_BEGIN() 127 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN() 129 assert_zu_ge(rsz, sz, "Real size smaller than expected"); in TEST_BEGIN() 133 p = mallocx(sz, 0); in TEST_BEGIN() 135 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN() 138 nsz = nallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() 140 p = mallocx(sz, MALLOCX_ZERO); in TEST_BEGIN() [all …]
|
D | thread_tcache_enabled.c | 6 size_t sz = sizeof(bool); in thd_start() local 7 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, NULL, in thd_start() 12 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 13 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 18 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 19 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 23 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 24 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() 28 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 29 (void *)&e1, sz), 0, "Unexpected mallctl() error"); in thd_start() [all …]
|
D | allocated.c | 17 size_t sz, usize; in thd_start() local 19 sz = sizeof(a0); in thd_start() 20 if ((err = mallctl("thread.allocated", (void *)&a0, &sz, NULL, 0))) { in thd_start() 27 sz = sizeof(ap0); in thd_start() 28 if ((err = mallctl("thread.allocatedp", (void *)&ap0, &sz, NULL, 0))) { in thd_start() 39 sz = sizeof(d0); in thd_start() 40 if ((err = mallctl("thread.deallocated", (void *)&d0, &sz, NULL, 0))) { in thd_start() 47 sz = sizeof(dp0); in thd_start() 48 if ((err = mallctl("thread.deallocatedp", (void *)&dp0, &sz, NULL, in thd_start() 63 sz = sizeof(a1); in thd_start() [all …]
|
/external/mesa3d/src/mesa/x86/ |
D | x86_xform.h | 41 #define DECLARE_XFORM_GROUP( pfx, sz ) \ argument 42 extern void _mesa_##pfx##_transform_points##sz##_general( XFORM_ARGS ); \ 43 extern void _mesa_##pfx##_transform_points##sz##_identity( XFORM_ARGS ); \ 44 extern void _mesa_##pfx##_transform_points##sz##_3d_no_rot( XFORM_ARGS ); \ 45 extern void _mesa_##pfx##_transform_points##sz##_perspective( XFORM_ARGS ); \ 46 extern void _mesa_##pfx##_transform_points##sz##_2d( XFORM_ARGS ); \ 47 extern void _mesa_##pfx##_transform_points##sz##_2d_no_rot( XFORM_ARGS ); \ 48 extern void _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/libvpx/libvpx/vp8/common/ |
D | reconintra.c | 33 #define INIT_SIZE(sz) \ in vp8_init_intra_predictors_internal() argument 34 pred[V_PRED][SIZE_##sz] = vpx_v_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 35 pred[H_PRED][SIZE_##sz] = vpx_h_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 36 pred[TM_PRED][SIZE_##sz] = vpx_tm_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 38 dc_pred[0][0][SIZE_##sz] = vpx_dc_128_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 39 dc_pred[0][1][SIZE_##sz] = vpx_dc_top_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 40 dc_pred[1][0][SIZE_##sz] = vpx_dc_left_predictor_##sz##x##sz; \ in vp8_init_intra_predictors_internal() 41 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/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/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(proc, p, sz); in FreeBlock() 80 return sz; in FreeBlock() 83 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument 86 u32 *end = MemToMeta(p + sz); in FreeRange() 122 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { in ResetRange() argument 126 FreeRange(proc, p, sz); in ResetRange() 131 if (sz <= 4 * kPageSize) { in ResetRange() [all …]
|
/external/libevent/ |
D | mm-internal.h | 46 void *event_mm_malloc_(size_t sz); 68 void *event_mm_realloc_(void *p, size_t sz); 70 #define mm_malloc(sz) event_mm_malloc_(sz) argument 73 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument 76 #define mm_malloc(sz) malloc(sz) 77 #define mm_calloc(n, sz) calloc((n), (sz)) 79 #define mm_realloc(p, sz) realloc((p), (sz))
|