/external/libmojo/mojo/public/cpp/bindings/tests/ |
buffer_unittest.cc | 46 void* ptr = nullptr; local 52 ptr = buf.Allocate(8); 53 ASSERT_TRUE(ptr); 58 EXPECT_EQ(ptr, buf_ptr); 65 // Since we called Leak, ptr is still writable after FixedBufferForTesting 67 memset(ptr, 1, 8);
|
/external/libvncserver/libvncclient/ |
corre.c | 38 uint8_t *ptr; local 54 ptr = (uint8_t *)client->buffer; 57 pix = *(CARDBPP *)ptr; 58 ptr += BPP/8; 59 x = *ptr++; 60 y = *ptr++; 61 w = *ptr++; 62 h = *ptr++;
|
/external/libvncserver/libvncserver/ |
zrleoutstream.h | 30 zrle_U8 *ptr; member in struct:__anon25951 41 #define ZRLE_BUFFER_LENGTH(b) ((b)->ptr - (b)->start)
|
/external/libxcam/modules/ocl/ |
cv_base_class.cpp | 29 XCAM_ASSERT (_cv_context.ptr ()); 50 uint8_t *ptr = buffer->map (); local 51 XCAM_FAIL_RETURN (WARNING, ptr, false, "convert_to_mat buffer map failed"); 53 cv::Mat mat = cv::Mat (info.aligned_height * 3 / 2, info.width, CV_8UC1, ptr, info.strides[0]);
|
/external/ltp/testcases/kernel/syscalls/getcontext/ |
getcontext01.c | 38 ucontext_t ptr; local 40 TEST(getcontext(&ptr));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/ |
12-1.c | 78 void *ptr; local 88 ptr = malloc(BUFSIZE); 89 if (ptr == NULL) { 94 result = mlock(ptr, BUFSIZE);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/ |
12-1.c | 79 void *ptr; local 89 ptr = malloc(BUFSIZE); 90 if (ptr == NULL) { 95 result = mlock(ptr, BUFSIZE);
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_format_aos_array.c | 50 * \param offset ptr offset 62 LLVMValueRef ptr, res = NULL; local 81 ptr = LLVMBuildGEP(builder, base_ptr, &offset, 1, ""); 82 ptr = LLVMBuildPointerCast(builder, ptr, LLVMPointerType(src_vec_type, 0), ""); 83 res = LLVMBuildLoad(builder, ptr, "");
|
/external/mesa3d/src/gallium/auxiliary/os/ |
os_memory_aligned.h | 61 char *ptr, *buf; local 76 ptr = (char *) os_malloc(alloc_size); 77 if (!ptr) 80 buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) & ~((uintptr_t)(alignment - 1))); 81 *(char **)(buf - sizeof(void *)) = ptr; 91 os_free_aligned(void *ptr) 93 if (ptr) { 94 void **cubbyHole = (void **) ((char *) ptr - sizeof(void *));
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_linear.c | 41 char *ptr; local 51 ptr = (char*)src_ptr + src_stride * t->rows * y + bytes * x; 53 memcpy(dst_ptr2, ptr, bytes); 55 ptr += src_stride; 65 char *ptr; local 73 ptr = (char*)dst_ptr + dst_stride * t->rows * y + bytes * x; 75 memcpy(ptr, src_ptr2, bytes); 77 ptr += dst_stride;
|
/external/perfetto/src/base/ |
page_allocator_unittest.cc | 40 PageAllocator::UniquePtr ptr = PageAllocator::Allocate(kSize); local 41 ASSERT_TRUE(ptr); 42 ASSERT_EQ(0u, reinterpret_cast<uintptr_t>(ptr.get()) % 4096); 43 ptr_raw = ptr.get(); 45 ASSERT_EQ(0u, *(reinterpret_cast<uint64_t*>(ptr.get()) + i)); 55 PageAllocator::UniquePtr ptr = PageAllocator::Allocate(kSize); local 56 ASSERT_TRUE(ptr); 57 volatile char* raw = reinterpret_cast<char*>(ptr.get()); 83 auto ptr = PageAllocator::AllocateMayFail(kMemLimit * 2); 84 ASSERT_FALSE(ptr); [all...] |
/external/perfetto/src/ftrace_reader/test/ |
cpu_reader_support.cc | 47 const char* ptr = text.data(); local 50 while (*ptr != '\0') { 51 if (*(ptr++) != ':') 55 static_cast<size_t>((ptr - text.data()) + 5)); 56 PERFETTO_CHECK(*(ptr++) == ' '); 57 int n = sscanf(ptr, "%02hhx%02hhx", out, out + 1); 60 ptr += 4; 62 while (*ptr != '\n') 63 ptr++;
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
prep_cif.c | 39 ffi_type **ptr; local 47 ptr = &(arg->elements[0]); 49 if (UNLIKELY(ptr == 0)) 52 while ((*ptr) != NULL) 54 if (UNLIKELY(((*ptr)->size == 0) 55 && (initialize_aggregate((*ptr)) != FFI_OK))) 59 FFI_ASSERT_VALID_TYPE(*ptr); 61 arg->size = ALIGN(arg->size, (*ptr)->alignment); 62 arg->size += (*ptr)->size; 64 arg->alignment = (arg->alignment > (*ptr)->alignment) 115 ffi_type **ptr; local [all...] |
/external/python/cpython2/Modules/_ctypes/libffi_osx/ |
ffi.c | 46 ffi_type** ptr = &(arg->elements[0]); 48 while ((*ptr) != NULL) 50 if (((*ptr)->size == 0) && (initialize_aggregate(*ptr) != FFI_OK)) 54 FFI_ASSERT_VALID_TYPE(*ptr); 57 int curalign = (*ptr)->alignment; 59 if (ptr != &(arg->elements[0])) 66 arg->size += (*ptr)->size; 70 arg->size = ALIGN(arg->size, (*ptr)->alignment); 71 arg->size += (*ptr)->size 146 ffi_type** ptr; local [all...] |
/external/python/cpython2/Python/ |
getopt.c | 52 char *ptr; local 105 if ((ptr = strchr(optstring, option)) == NULL) { 112 if (*(ptr + 1) == ':') {
|
/external/python/cpython3/Modules/_ctypes/libffi/src/ |
prep_cif.c | 39 ffi_type **ptr; local 47 ptr = &(arg->elements[0]); 49 if (UNLIKELY(ptr == 0)) 52 while ((*ptr) != NULL) 54 if (UNLIKELY(((*ptr)->size == 0) 55 && (initialize_aggregate((*ptr)) != FFI_OK))) 59 FFI_ASSERT_VALID_TYPE(*ptr); 61 arg->size = ALIGN(arg->size, (*ptr)->alignment); 62 arg->size += (*ptr)->size; 64 arg->alignment = (arg->alignment > (*ptr)->alignment) 115 ffi_type **ptr; local [all...] |
/external/python/cpython3/Modules/_ctypes/libffi_osx/ |
ffi.c | 41 ffi_type** ptr; local 47 ptr = &(arg->elements[0]); 49 while ((*ptr) != NULL) 51 if (((*ptr)->size == 0) && (initialize_aggregate(*ptr) != FFI_OK)) 55 FFI_ASSERT_VALID_TYPE(*ptr); 58 int curalign = (*ptr)->alignment; 60 if (ptr != &(arg->elements[0])) 67 arg->size += (*ptr)->size; 71 arg->size = ALIGN(arg->size, (*ptr)->alignment) 141 ffi_type** ptr; local [all...] |
/external/python/cpython3/Python/ |
getopt.c | 56 wchar_t *ptr; local 102 if ((ptr = wcschr(optstring, option)) == NULL) { 108 if (*(ptr + 1) == L':') {
|
/external/selinux/libselinux/src/ |
get_default_type.c | 30 const char *ptr = "", *end; local 44 ptr = buf; 45 while (*ptr && isspace(*ptr)) 46 ptr++; 47 if (!(*ptr)) 50 if (!strncmp(role, ptr, len)) { 51 end = ptr + len; 54 ptr = ++end; 68 strcpy(t, ptr); [all...] |
/external/selinux/libsemanage/src/ |
parse_utils.h | 13 char *ptr; /* Current parsing location */ member in struct:parse_info
|
/external/skia/src/ports/ |
SkTLS_win.cpp | 33 void SkTLS::PlatformSetSpecific(void* ptr) { 35 (void)TlsSetValue(gTlsIndex, ptr); 54 void* ptr = TlsGetValue(gTlsIndex); local 55 if (ptr != nullptr) { 56 SkTLS::Destructor(ptr);
|
/external/skqp/src/ports/ |
SkTLS_win.cpp | 33 void SkTLS::PlatformSetSpecific(void* ptr) { 35 (void)TlsSetValue(gTlsIndex, ptr); 54 void* ptr = TlsGetValue(gTlsIndex); local 55 if (ptr != nullptr) { 56 SkTLS::Destructor(ptr);
|
/external/tensorflow/tensorflow/contrib/lite/kernels/ |
gemm_support.cc | 28 auto* ptr = reinterpret_cast<RefCountedGemmContext*>(context->gemm_context); local 29 if (ptr == nullptr) { 30 ptr = new RefCountedGemmContext; 31 ptr->gemm_context_ = new gemmlowp::GemmContext(); 32 ptr->num_references_ = 0; 33 context->gemm_context = ptr; 35 ptr->num_references_++; 39 auto* ptr = reinterpret_cast<RefCountedGemmContext*>(context->gemm_context); local 40 if (ptr == nullptr) { 45 if (--ptr->num_references_ == 0) 53 auto* ptr = reinterpret_cast<RefCountedGemmContext*>(context->gemm_context); local [all...] |
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
gpu_bfc_allocator.h | 62 void* ptr = nullptr; variable 64 ptr = stream_exec_->AllocateArray<char>(num_bytes).opaque(); 66 return ptr; 69 void Free(void* ptr, size_t num_bytes) override { 70 if (ptr != nullptr) { 71 gpu::DeviceMemoryBase gpu_ptr(ptr);
|
/external/valgrind/callgrind/ |
costs.c | 42 ULong* ptr; local 64 ptr = &(cost_chunk_current->data[cost_chunk_current->used]); 69 return ptr;
|