Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 18 of 18) sorted by relevance

/external/dbus/dbus/
Ddbus-mempool.c98 int element_size; /**< size of a single object in the pool */ member
136 _dbus_mem_pool_new (int element_size, in _dbus_mem_pool_new() argument
146 if (element_size < 8) in _dbus_mem_pool_new()
147 element_size = 8; in _dbus_mem_pool_new()
152 _dbus_assert (element_size >= (int) sizeof (void*)); in _dbus_mem_pool_new()
153 _dbus_assert (element_size >= (int) sizeof (DBusFreedElement)); in _dbus_mem_pool_new()
158 pool->element_size = _DBUS_ALIGN_VALUE (element_size, sizeof (void *)); in _dbus_mem_pool_new()
169 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new()
172 pool->element_size) == 0); in _dbus_mem_pool_new()
224 pool->element_size; in _dbus_mem_pool_alloc()
[all …]
Ddbus-mempool.h35 DBusMemPool* _dbus_mem_pool_new (int element_size,
/external/webkit/JavaScriptCore/wtf/wince/
DMemoryManager.cpp116 void *fastCalloc(size_t n_elements, size_t element_size) { return calloc(n_elements, element_size);… in fastCalloc() argument
123 …id *fastCalloc(size_t n_elements, size_t element_size) { return MemoryManager::m_calloc(n_elements… in fastCalloc() argument
154 TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size) in tryFastCalloc() argument
157 return fastCalloc(n_elements, element_size); in tryFastCalloc()
DFastMallocWince.h34 void* fastCalloc(size_t n_elements, size_t element_size);
41 void* tryFastCalloc(size_t n_elements, size_t element_size);
53 #define calloc(n_elements, element_size) fastCalloc(n_elements, element_size) argument
/external/webkit/WebKitTools/android/flex-2.5.4a/
Dmisc.c81 void *allocate_array( size, element_size ) in allocate_array() argument
83 size_t element_size;
86 size_t num_bytes = element_size * size;
755 void *reallocate_array( array, size, element_size ) in reallocate_array() argument
758 size_t element_size;
761 size_t num_bytes = element_size * size;
/external/webkit/WebKitTools/android/flex-2.5.4a/MISC/Borland.old/
DBorland-2.445 void *allocate_array( size, element_size )
47 int size, element_size;
49 +size_t size, element_size;
64 void *reallocate_array( array, size, element_size )
67 int size, element_size;
69 +size_t size, element_size;
75 if ( size * element_size <= 0 )
/external/bluetooth/glib/glib/
Dgarray.h72 guint element_size);
75 guint element_size,
/external/protobuf/python/google/protobuf/internal/
Dencoder.py188 element_size = value_size + tag_size
190 return len(value) * element_size
/external/webkit/JavaScriptCore/wtf/
DFastMalloc.h72 TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size);
DFastMalloc.cpp255 TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size) in tryFastCalloc() argument
260 size_t totalBytes = n_elements * element_size; in tryFastCalloc()
261 …if (n_elements > 1 && element_size && (totalBytes / element_size) != n_elements || (std::numeric_l… in tryFastCalloc()
274 return calloc(n_elements, element_size); in tryFastCalloc()
278 void* fastCalloc(size_t n_elements, size_t element_size) in fastCalloc() argument
283 TryMallocReturnValue returnValue = tryFastCalloc(n_elements, element_size); in fastCalloc()
287 void* result = calloc(n_elements, element_size); in fastCalloc()
294 if (!n_elements || !element_size) in fastCalloc()
/external/libffi/src/
Ddlmalloc.c3944 size_t element_size; /* chunksize of each element, if all same */ in ialloc() local
3973 element_size = request2size(*sizes); in ialloc()
3974 contents_size = n_elements * element_size; in ialloc()
3977 element_size = 0; in ialloc()
4022 if (element_size != 0) in ialloc()
4023 size = element_size; in ialloc()
4039 if (element_size != 0) { in ialloc()
4040 assert(remainder_size == element_size); in ialloc()
/external/qemu/distrib/sdl-1.2.12/src/stdlib/
DSDL_malloc.c3954 size_t element_size; /* chunksize of each element, if all same */ in ialloc() local
3983 element_size = request2size(*sizes); in ialloc()
3984 contents_size = n_elements * element_size; in ialloc()
3987 element_size = 0; in ialloc()
4032 if (element_size != 0) in ialloc()
4033 size = element_size; in ialloc()
4049 if (element_size != 0) { in ialloc()
4050 assert(remainder_size == element_size); in ialloc()
/external/v8/src/ia32/
Dmacro-assembler-ia32.h242 ScaleFactor element_size,
Dmacro-assembler-ia32.cc804 ScaleFactor element_size, in AllocateInNewSpace() argument
819 lea(result_end, Operand(result, element_count, element_size, header_size)); in AllocateInNewSpace()
/external/v8/src/x64/
Dmacro-assembler-x64.h548 ScaleFactor element_size,
Dmacro-assembler-x64.cc2310 ScaleFactor element_size, in AllocateInNewSpace() argument
2325 lea(result_end, Operand(result, element_count, element_size, header_size)); in AllocateInNewSpace()
/external/v8/test/cctest/
Dtest-api.cc8904 int element_size = 0; in ExternalArrayTestHelper() local
8908 element_size = 1; in ExternalArrayTestHelper()
8912 element_size = 2; in ExternalArrayTestHelper()
8917 element_size = 4; in ExternalArrayTestHelper()
8924 static_cast<ElementType*>(malloc(kElementCount * element_size)); in ExternalArrayTestHelper()
9162 static_cast<ElementType*>(malloc(kLargeElementCount * element_size)); in ExternalArrayTestHelper()
/external/bluetooth/glib/
DChangeLog.pre-1-22020 accepts two more initialization arguments: clear and element_size.