/external/mesa3d/src/gallium/state_trackers/vega/ |
util_array.h | 38 VGint num_elements; member in struct:array 79 array->num_elements = (array->num_elements > num) ? num : 80 array->num_elements; 84 const void *data, int num_elements) 88 while (array->num_elements + num_elements > array->size) { 89 array_resize(array, (array->num_elements + num_elements) * 1.5); 92 memcpy(adata + (array->num_elements * array->datatype_size), data [all...] |
/external/eigen/test/ |
umeyama.cpp | 91 void run_test(int dim, int num_elements) 109 MatrixX src = MatrixX::Random(dim+1, num_elements); 110 src.row(dim) = Matrix<Scalar, 1, Dynamic>::Constant(num_elements, Scalar(1)); 114 MatrixX cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements)); 121 void run_fixed_size_test(int num_elements) 143 MatrixX src = MatrixX::Random(dim+1, num_elements); 144 src.row(dim) = Matrix<Scalar, 1, Dynamic>::Constant(num_elements, Scalar(1)); 148 Block<MatrixX, Dimension, Dynamic> src_block(src,0,0,dim,num_elements); 149 Block<MatrixX, Dimension, Dynamic> dst_block(dst,0,0,dim,num_elements); [all...] |
/libcore/luni/src/benchmark/native/ |
libcore_io_Memory_bench.cpp | 24 size_t num_elements = state.range_x(); local 32 src_elems = new T[num_elements + 1]; 33 dst_elems = new T[num_elements + 1]; 38 src_elems = new T[num_elements]; 39 dst_elems = new T[num_elements]; 45 memset(dst, 0, sizeof(T) * num_elements); 46 memset(src, 0x12, sizeof(T) * num_elements); 49 swap_func(src, dst, num_elements);
|
/art/runtime/utils/ |
dex_cache_arrays_layout-inl.h | 62 inline size_t DexCacheArraysLayout::TypesSize(size_t num_elements) const { 65 return std::max(ArraySize(sizeof(GcRoot<mirror::Class>), num_elements), pointer_size_); 76 inline size_t DexCacheArraysLayout::MethodsSize(size_t num_elements) const { 78 return std::max(ArraySize(pointer_size_, num_elements), pointer_size_); 89 inline size_t DexCacheArraysLayout::StringsSize(size_t num_elements) const { 90 return ArraySize(sizeof(GcRoot<mirror::String>), num_elements); 101 inline size_t DexCacheArraysLayout::FieldsSize(size_t num_elements) const { 102 return ArraySize(pointer_size_, num_elements); 113 inline size_t DexCacheArraysLayout::ArraySize(size_t element_size, uint32_t num_elements) { 114 return element_size * num_elements; [all...] |
dex_cache_arrays_layout.h | 63 size_t TypesSize(size_t num_elements) const; 73 size_t MethodsSize(size_t num_elements) const; 83 size_t StringsSize(size_t num_elements) const; 93 size_t FieldsSize(size_t num_elements) const; 109 static size_t ArraySize(size_t element_size, uint32_t num_elements);
|
/libcore/luni/src/test/native/ |
libcore_io_Memory_test.cpp | 27 template<typename T, size_t NUM_ELEMENTS> 33 sizeof(T) * NUM_ELEMENTS + ALIGNMENT)); 35 sizeof(T) * NUM_ELEMENTS + ALIGNMENT)); 37 T src_buf[NUM_ELEMENTS]; 38 T dst_buf[NUM_ELEMENTS]; 39 for (uint64_t i = 0; i < NUM_ELEMENTS; i++) { 48 memset(dst_aligned, 0, sizeof(T) * NUM_ELEMENTS); 49 memcpy(src_aligned, src_buf, sizeof(T) * NUM_ELEMENTS); 50 swap_func(dst_aligned, src_aligned, NUM_ELEMENTS); 51 ASSERT_EQ(0, memcmp(dst_buf, dst_aligned, sizeof(T) * NUM_ELEMENTS)) [all...] |
/external/webrtc/webrtc/common_audio/ |
ring_buffer_unittest.cc | 33 static int SetIncrementingData(int* data, int num_elements, 35 for (int i = 0; i < num_elements; i++) { 41 static int CheckIncrementingData(int* data, int num_elements, 43 for (int i = 0; i < num_elements; i++) { 71 const int num_elements = rand() % buffer_size; local 76 const int expected_elements = std::min(num_elements, buffer_available); 81 num_elements)); 85 const int expected_elements = std::min(num_elements, 93 num_elements));
|
/toolchain/binutils/binutils-2.25/libiberty/ |
partition.c | 39 /* Creates a partition of NUM_ELEMENTS elements. Initially each 43 partition_new (int num_elements) 49 (num_elements - 1) * sizeof (struct partition_elem)); 50 part->num_elements = num_elements; 51 for (e = 0; e < num_elements; ++e) 143 int num_elements = part->num_elements; local 149 done = (char *) xmalloc (num_elements); 150 memset (done, 0, num_elements); [all...] |
/hardware/intel/img/psb_video/src/ |
psb_drv_debug.c | 847 print_num = fprintf(psb_dump_vabuf_fp, "BUFF SIZE :%d NUMELEMENTS:%d BUFF INFO:\n", obj_buffer->size, obj_buffer->num_elements); 855 print_num = fprintf(psb_dump_vabuf_fp,"0x%02x ,",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k))); 867 for(k=0;k < obj_buffer->num_elements;++k) 868 fprintf(psb_dump_vabuf_fp,"0x%02x ",*((unsigned char *)(mapped_buffer+obj_buffer->num_elements*j+k))); 882 for(k=0;k < obj_buffer->num_elements;++k) 883 fprintf(psb_dump_vabuf_fp,"0x%02x ",*((unsigned char *)(mapped_buffer+obj_buffer->num_elements*j+k))); 906 fprintf(psb_dump_vabuf_verbose_fp, "BUFF SIZE :%d NUMELEMENTS:%d BUFF INFO:\n", obj_buffer->size, obj_buffer->num_elements); 914 fprintf(psb_dump_vabuf_verbose_fp,"0x%02x ",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k))); 917 fprintf(psb_dump_vabuf_verbose_fp,"0x%02x ",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k))); 920 fprintf(psb_dump_vabuf_verbose_fp,"0x%02x ",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k))) [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/ |
btGenericPoolAllocator.cpp | 27 size_t btGenericMemoryPool::allocate_from_free_nodes(size_t num_elements) 37 if(m_allocated_sizes[m_free_nodes[revindex]]>=num_elements) 50 finalsize -= num_elements; 52 m_allocated_sizes[ptr] = num_elements; 58 m_free_nodes[revindex] = ptr + num_elements; 59 m_allocated_sizes[ptr + num_elements] = finalsize; 71 size_t btGenericMemoryPool::allocate_from_pool(size_t num_elements) 73 if(m_allocated_count+num_elements>m_max_element_count) return BT_UINT_MAX; 77 m_allocated_sizes[m_allocated_count] = num_elements; 78 m_allocated_count+=num_elements; [all...] |
btGenericPoolAllocator.h | 46 size_t allocate_from_free_nodes(size_t num_elements); 47 size_t allocate_from_pool(size_t num_elements);
|
/external/mesa3d/src/gallium/state_trackers/va/ |
va_buffer.c | 35 unsigned int size, unsigned int num_elements, void *data, 45 vlVaBufferSetNumElements(VADriverContextP ctx, VABufferID buf_id, unsigned int num_elements) 82 VABufferType *type, unsigned int *size, unsigned int *num_elements)
|
/hardware/intel/common/libva/va/ |
va_trace.c | 122 unsigned int *num_elements /* out */ 651 unsigned int num_elements, /* in */ 667 va_TraceMsg(trace_ctx, "\tnum_elements=%d\n", num_elements); 679 unsigned int num_elements; local 683 vaBufferInfo(dpy, trace_ctx->trace_context, buf_id, &type, &size, &num_elements); 693 va_TraceMsg(trace_ctx, "\tnum_elements=%d\n", num_elements); 707 unsigned int num_elements; local 714 vaBufferInfo(dpy, trace_ctx->trace_context, buf_id, &type, &size, &num_elements); 752 unsigned int num_elements, 762 va_TraceMsg(trace_ctx, "\t context = %d, buffer = %d, type = %d, size = %d, num_elements = %d\n" 2849 unsigned int num_elements; local 3024 unsigned int num_elements; local [all...] |
va_fool.h | 66 unsigned int num_elements, /* in */ 82 unsigned int *num_elements /* out */
|
/cts/tests/jank/src/android/jank/cts/ui/ |
CtsDeviceJankUi.java | 31 private final static int NUM_ELEMENTS = 1000; 43 intent.putExtra("num_elements", NUM_ELEMENTS);
|
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/ |
video_sync_test.cc | 62 int num_elements = end - start; local 63 int mean = std::accumulate(start, end, 0) / num_elements; 64 assert(num_elements > 1); 68 variance += (*start - mean) * (*start - mean) / (num_elements - 1);
|
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_vbo.c | 134 for (i = 0; i < nv30->vertex->num_elements; i++) { 202 redefine = MAX2(vertex->num_elements, nv30->state.num_vtxelts); 205 for (i = 0; i < vertex->num_elements; i++) { 219 for (i = 0; i < vertex->num_elements; i++) { 244 nv30->state.num_vtxelts = vertex->num_elements; 248 nv30_vertex_state_create(struct pipe_context *pipe, unsigned num_elements, 255 assert(num_elements); 257 so = MALLOC(sizeof(*so) + sizeof(*so->element) * num_elements); 260 memcpy(so->pipe, elements, sizeof(*elements) * num_elements); 261 so->num_elements = num_elements [all...] |
nv30_state.h | 138 unsigned num_elements; member in struct:nv30_vertex_stateobj
|
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/ |
diagnose.py | 139 def rdoc(num_elements=1000): 143 for i in range(num_elements): 157 def benchmark_parsers(num_elements=100000): 160 data = rdoc(num_elements) 189 def profile(num_elements=100000, parser="lxml"): 194 data = rdoc(num_elements)
|
/external/selinux/libsepol/cil/src/ |
cil_mem.c | 63 void *cil_calloc(size_t num_elements, size_t element_size) 65 void *mem = calloc(num_elements, element_size);
|
/external/mesa3d/src/gallium/drivers/nv50/ |
nv50_stateobj.h | 56 unsigned num_elements; member in struct:nv50_vertex_stateobj
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
nvc0_stateobj.h | 55 unsigned num_elements; member in struct:nvc0_vertex_stateobj
|
nvc0_vbo.c | 49 unsigned num_elements, 58 num_elements * sizeof(struct nvc0_vertex_element)); 61 so->num_elements = num_elements; 75 for (i = 0; i < num_elements; ++i) { 145 for (i = 0; i < num_elements; ++i) { 233 PUSH_SPACE(push, nvc0->vertex->num_elements * 8); 234 for (i = 0; i < nvc0->vertex->num_elements; ++i) { 314 PUSH_SPACE(push, vertex->num_elements * 8); 315 for (i = 0; i < vertex->num_elements; ++i) [all...] |
/external/pdfium/third_party/agg23/ |
agg_array.h | 185 int allocate_continuous_block(unsigned num_elements); 387 int pod_deque<T, S>::allocate_continuous_block(unsigned num_elements) 389 if(num_elements < block_size) { 393 if(num_elements <= rest) { 395 m_size += num_elements; 401 m_size += num_elements;
|
/art/runtime/base/ |
length_prefixed_array.h | 71 static size_t ComputeSize(size_t num_elements, 74 size_t result = OffsetOfElement(num_elements, element_size, alignment);
|