/external/autotest/client/tests/memory_api/ |
mremaps.c | 16 char *mem; local 36 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, 40 if (mem == (void*) -1) { 46 mem = mremap(mem , memsize * (i >> 1), 50 if (mem == MAP_FAILED) { 56 memsize * i, mem); 59 if (munmap(mem, memsize * 16)) { 64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, 68 if (mem == (void*) -1) [all...] |
memory_api.c | 27 char *mem; local 50 mem = sbrk(memsize); 52 if (mem == (void*) -1) { 58 memsize, mem); 64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, 68 if (mem == (void*) -1) { 74 memsize, mem); 78 if (-1 == mprotect(mem, HALF_MEM(memsize), PROT_READ)) { 84 HALF_MEM(memsize), mem); 88 if (-1 == mprotect(mem, HALF_MEM(memsize) [all...] |
/external/compiler-rt/lib/asan/ |
asan_malloc_linux.cc | 61 void *mem = (void*)&calloc_memory_for_dlsym[allocated]; local 64 return mem; 149 void (*free)(void *mem); 153 uptr (*malloc_usable_size)(void *mem); 158 void (*free)(void *mem); 161 uptr (*malloc_usable_size)(void *mem);
|
/external/compiler-rt/test/tsan/ |
signal_longjmp.cc | 10 // "((volatile int *volatile)mem)[1] = 1". 62 void *mem = mmap(0, 4096, PROT_NONE, MAP_PRIVATE | MAP_ANON, local 65 MUST_FAULT(((volatile int *volatile)mem)[0] = 0); 66 MUST_FAULT(((volatile int *volatile)mem)[1] = 1); 67 MUST_FAULT(((volatile int *volatile)mem)[3] = 1);
|
bench_shadow_flush.cc | 35 volatile char *mem = (volatile char *)a; local 40 mem[off + off2 * kStride] = 42;
|
/external/curl/docs/examples/ |
getinmemory.c | 42 struct MemoryStruct *mem = (struct MemoryStruct *)userp; local 44 mem->memory = realloc(mem->memory, mem->size + realsize + 1); 45 if(mem->memory == NULL) { 51 memcpy(&(mem->memory[mem->size]), contents, realsize); 52 mem->size += realsize; 53 mem->memory[mem->size] = 0 [all...] |
postinmemory.c | 36 struct MemoryStruct *mem = (struct MemoryStruct *)userp; local 38 mem->memory = realloc(mem->memory, mem->size + realsize + 1); 39 if(mem->memory == NULL) { 45 memcpy(&(mem->memory[mem->size]), contents, realsize); 46 mem->size += realsize; 47 mem->memory[mem->size] = 0 [all...] |
/external/libchrome/base/memory/ |
ref_counted_memory_unittest.cc | 14 scoped_refptr<RefCountedMemory> mem = new RefCountedStaticMemory( local 17 EXPECT_EQ(10U, mem->size()); 18 EXPECT_EQ("static mem", std::string(mem->front_as<char>(), mem->size())); 25 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data); local 29 EXPECT_EQ(2U, mem->size()); 30 EXPECT_EQ(45U, mem->front()[0]); 31 EXPECT_EQ(99U, mem->front()[1]); 46 scoped_refptr<RefCountedMemory> mem = RefCountedString::TakeString(&s) local 77 scoped_refptr<RefCountedMemory> mem = RefCountedString::TakeString(&s); local [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/ |
btSphereBoxCollisionAlgorithm.h | 61 void* mem = ci.m_dispatcher1->allocateCollisionAlgorithm(sizeof(btSphereBoxCollisionAlgorithm)); local 64 return new(mem) btSphereBoxCollisionAlgorithm(0,ci,body0Wrap,body1Wrap,false); 67 return new(mem) btSphereBoxCollisionAlgorithm(0,ci,body0Wrap,body1Wrap,true);
|
btSphereSphereCollisionAlgorithm.h | 58 void* mem = ci.m_dispatcher1->allocateCollisionAlgorithm(sizeof(btSphereSphereCollisionAlgorithm)); local 59 return new(mem) btSphereSphereCollisionAlgorithm(0,ci,col0Wrap,col1Wrap);
|
btSphereTriangleCollisionAlgorithm.h | 60 void* mem = ci.m_dispatcher1->allocateCollisionAlgorithm(sizeof(btSphereTriangleCollisionAlgorithm)); local 62 return new(mem) btSphereTriangleCollisionAlgorithm(ci.m_manifold,ci,body0Wrap,body1Wrap,m_swapped);
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletSoftBody/ |
btSoftRigidCollisionAlgorithm.h | 60 void* mem = ci.m_dispatcher1->allocateCollisionAlgorithm(sizeof(btSoftRigidCollisionAlgorithm)); local 63 return new(mem) btSoftRigidCollisionAlgorithm(0,ci,body0Wrap,body1Wrap,false); 66 return new(mem) btSoftRigidCollisionAlgorithm(0,ci,body0Wrap,body1Wrap,true);
|
/external/libopus/silk/ |
LPC_analysis_filter.c | 52 opus_int16 mem[SILK_MAX_ORDER_LPC]; local 70 mem[ j ] = in[ d - j - 1 ]; 72 celt_fir( in + d, num, out + d, len - d, d, mem );
|
/external/libunwind/src/coredump/ |
_UCD_find_proc_info.c | 135 void *mem = malloc (pi->unwind_info_size); local 137 if (!mem) 139 memcpy (mem, pi->unwind_info, pi->unwind_info_size); 140 pi->unwind_info = mem;
|
/external/libunwind/src/ptrace/ |
_UPT_find_proc_info.c | 124 void *mem = malloc (pi->unwind_info_size); local 126 if (!mem) 128 memcpy (mem, pi->unwind_info, pi->unwind_info_size); 129 pi->unwind_info = mem;
|
/external/valgrind/none/tests/mips32/ |
LoadStore.c | 3 unsigned int mem[] = { variable 45 : "r" (mem), "r" (RTval) \ 96 printf("MEM:\n"); 122 printf("MEM:\n"); 169 ppMem1(mem, 16); 196 ppMem1(mem, 16); 223 ppMem1(mem, 16); 250 ppMem1(mem, 16); 277 ppMem1(mem, 16); 304 ppMem1(mem, 16) [all...] |
LoadStore1.c | 3 unsigned int mem[] = { variable 45 : "r" (mem), "r" (RTval) \ 96 printf("MEM:\n"); 122 printf("MEM:\n"); 169 ppMem1(mem, 16); 196 ppMem1(mem, 16); 223 ppMem1(mem, 16); 250 ppMem1(mem, 16); 277 ppMem1(mem, 16); 304 ppMem1(mem, 16) [all...] |
MIPS32int.c | 87 const unsigned int mem[] = { variable 104 : "r" (mem), "r" (RTval) \ [all...] |
/external/valgrind/none/tests/mips64/ |
load_store_multiple.c | 3 unsigned int mem[] = { variable 44 : "r" (mem), "r" (RTval) \ 93 printf("MEM:\n"); 118 printf("MEM:\n"); 164 ppMem1(mem, 16); 191 ppMem1(mem, 16); 218 ppMem1(mem, 16); 245 ppMem1(mem, 16); 272 ppMem1(mem, 16); 299 ppMem1(mem, 16) [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
NuPlayerStreamListener.cpp | 41 sp<IMemory> mem = mMemoryDealer->allocate(kBufferSize); local 42 CHECK(mem != NULL); 44 mBuffers.push(mem); 151 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); local 152 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) { 157 (const uint8_t *)mem->pointer()
|
/external/clang/test/Analysis/ |
region-store.c | 33 int mem; member in struct:X 39 return l.mem; // no-warning
|
/external/clang/test/CodeGenCXX/ |
constructors.cpp | 18 Member mem; member in struct:A 21 A::A(struct Undeclared &ref) : mem(0) {} 30 A::A(ValueClass v) : mem(v.y - v.x) {} 41 Member mem; member in struct:B 44 B::B(struct Undeclared &ref) : A(ref), mem(1) {} 61 Member mem; member in struct:C 63 C::C(int x) : A(ValueClass(x, x+1)), mem(x * x) {} 78 Member mem; member in struct:D 81 D::D(int x, ...) : A(ValueClass(x, x+1)), mem(x*x) {}
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_persistent_allocator.h | 59 uptr mem = (uptr)MmapOrDie(allocsz, "stack depot"); local 60 atomic_store(®ion_end, mem + allocsz, memory_order_release); 61 atomic_store(®ion_pos, mem, memory_order_release);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_posix_test.cc | 63 uptr mem = (uptr)mmap(0, 3 * page_size, PROT_READ | PROT_WRITE, local 66 mprotect((void *)(mem + page_size), page_size, PROT_NONE); 67 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size - 1)); 68 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size)); 69 EXPECT_FALSE(IsAccessibleMemoryRange(mem, page_size + 1)); 70 EXPECT_TRUE(IsAccessibleMemoryRange(mem + page_size - 1, 1)); 71 EXPECT_FALSE(IsAccessibleMemoryRange(mem + page_size - 1, 2)); 72 EXPECT_FALSE(IsAccessibleMemoryRange(mem + 2 * page_size - 1, 1)); 73 EXPECT_TRUE(IsAccessibleMemoryRange(mem + 2 * page_size, page_size)); 74 EXPECT_FALSE(IsAccessibleMemoryRange(mem, 3 * page_size)) [all...] |
/external/elfutils/libdw/ |
dwarf_getpubnames.c | 48 struct pubnames_s *mem = NULL; local 61 = (struct pubnames_s *) realloc (mem, allocated * entsize); 66 free (mem); 70 mem = newmem; 89 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; 90 mem[cnt].address_len = len_bytes; 92 if (mem[cnt].set_start >= max_size 93 || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start) 109 &mem[cnt].cu_offset, IDX_debug_info, 3)) 116 + mem[cnt].cu_offset) [all...] |