/third_party/glfw/src/ |
H A D | posix_thread.c | 42 assert(tls->posix.allocated == GLFW_FALSE); in _glfwPlatformCreateTls() 51 tls->posix.allocated = GLFW_TRUE; in _glfwPlatformCreateTls() 57 if (tls->posix.allocated) in _glfwPlatformDestroyTls() 64 assert(tls->posix.allocated == GLFW_TRUE); in _glfwPlatformGetTls() 70 assert(tls->posix.allocated == GLFW_TRUE); in _glfwPlatformSetTls() 76 assert(mutex->posix.allocated == GLFW_FALSE); in _glfwPlatformCreateMutex() 84 return mutex->posix.allocated = GLFW_TRUE; in _glfwPlatformCreateMutex() 89 if (mutex->posix.allocated) in _glfwPlatformDestroyMutex() 96 assert(mutex->posix.allocated == GLFW_TRUE); in _glfwPlatformLockMutex() 102 assert(mutex->posix.allocated in _glfwPlatformUnlockMutex() [all...] |
H A D | win32_thread.c | 41 assert(tls->win32.allocated == GLFW_FALSE); in _glfwPlatformCreateTls() 50 tls->win32.allocated = GLFW_TRUE; in _glfwPlatformCreateTls() 56 if (tls->win32.allocated) in _glfwPlatformDestroyTls() 63 assert(tls->win32.allocated == GLFW_TRUE); in _glfwPlatformGetTls() 69 assert(tls->win32.allocated == GLFW_TRUE); in _glfwPlatformSetTls() 75 assert(mutex->win32.allocated == GLFW_FALSE); in _glfwPlatformCreateMutex() 77 return mutex->win32.allocated = GLFW_TRUE; in _glfwPlatformCreateMutex() 82 if (mutex->win32.allocated) in _glfwPlatformDestroyMutex() 89 assert(mutex->win32.allocated == GLFW_TRUE); in _glfwPlatformLockMutex() 95 assert(mutex->win32.allocated in _glfwPlatformUnlockMutex() [all...] |
H A D | posix_thread.h | 38 GLFWbool allocated; member 46 GLFWbool allocated; member
|
H A D | win32_thread.h | 42 GLFWbool allocated; member 50 GLFWbool allocated; member
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | low_level_alloc_test.cc | 78 // all remaining allocated blocks are freed. 85 AllocMap allocated; in Test() local 112 it = allocated.find(rnd); in Test() 113 if (it != allocated.end()) { in Test() 120 allocated[rnd] = block_desc; in Test() 124 it = allocated.begin(); in Test() 125 if (it != allocated.end()) { in Test() 130 allocated.erase(it); in Test() 136 while ((it = allocated.begin()) != allocated in Test() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | framequeue.c | 27 return &fq->queue[(fq->tail + idx) & (fq->allocated - 1)]; in bucket() 50 fq->allocated = 1; in ff_framequeue_init() 68 if (fq->queued == fq->allocated) { in ff_framequeue_add() 69 if (fq->allocated == 1) { in ff_framequeue_add() 76 fq->allocated = na; in ff_framequeue_add() 78 size_t na = fq->allocated << 1; in ff_framequeue_add() 82 if (fq->tail + fq->queued > fq->allocated) in ff_framequeue_add() 83 memmove(nq + fq->allocated, nq, in ff_framequeue_add() 84 (fq->tail + fq->queued - fq->allocated) * sizeof(*nq)); in ff_framequeue_add() 86 fq->allocated in ff_framequeue_add() [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | utils.c | 124 unsigned int allocated = 2048; in read_file() local 136 allocated *= 2; in read_file() 137 buf = crealloc(buf, allocated); in read_file() 138 bytes_read = fread(buf + *file_size, 1, allocated - *file_size, f); in read_file() 140 } while (*file_size == allocated && allocated < MAX_FILE_SIZE); in read_file() 142 if (*file_size > 0 && buf[*file_size - 1] != '\n' && *file_size < allocated) { in read_file()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-vector.hh | 63 allocated = o.allocated; in hb_vector_t() 71 int allocated = 0; /* == -1 means allocation failed. */ member 79 allocated = length = 0; in init() 99 allocated = length; // Big hack! in reset() 105 hb_swap (a.allocated, b.allocated); in swap() 205 bool in_error () const { return allocated < 0; } in in_error() 213 if (likely (size <= (unsigned) allocated)) in alloc() 218 unsigned int new_allocated = allocated; in alloc() [all...] |
H A D | hb-blob.cc | 98 * Note that this function returns a freshly-allocated empty blob even if @length 736 unsigned long len = 0, allocated = BUFSIZ * 16; in hb_blob_create_from_file_or_fail() local 737 char *data = (char *) hb_malloc (allocated); in hb_blob_create_from_file_or_fail() 745 if (allocated - len < BUFSIZ) in hb_blob_create_from_file_or_fail() 747 allocated *= 2; in hb_blob_create_from_file_or_fail() 750 if (unlikely (allocated > (2 << 28))) goto fread_fail; in hb_blob_create_from_file_or_fail() 751 char *new_data = (char *) hb_realloc (data, allocated); in hb_blob_create_from_file_or_fail() 756 unsigned long addition = fread (data + len, 1, allocated - len, fp); in hb_blob_create_from_file_or_fail()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | fixed_array_test.cc | 102 absl::FixedArray<int, 10> allocated(15); in TEST() 103 std::iota(allocated.begin(), allocated.end(), 0); in TEST() 104 absl::FixedArray<int, 10> alloced_copy = allocated; in TEST() 105 EXPECT_THAT(alloced_copy, ElementsAreArray(allocated)); in TEST() 119 absl::FixedArray<std::unique_ptr<int>, 10> allocated(15); in TEST() 121 allocated[i] = absl::make_unique<int>(i); in TEST() 125 std::move(allocated); in TEST() 127 EXPECT_EQ(allocated.size(), alloced_copy.size()); in TEST() 548 absl::FixedArray<int, 0> allocated in TEST() local 753 int64_t allocated = 0; TEST() local 763 int64_t allocated = 0; TEST() local [all...] |
H A D | inlined_vector_test.cc | 897 // One is allocated and the other isn't. The allocation is transferred in TYPED_TEST_P() 1569 int64_t allocated = 0; in TEST() local 1570 MyAlloc alloc(&allocated); in TEST() 1585 int64_t allocated = 0; in TEST() local 1586 MyAlloc alloc(&allocated); in TEST() 1589 EXPECT_THAT(allocated, 0); in TEST() 1591 EXPECT_THAT(allocated, 0); in TEST() 1594 EXPECT_THAT(allocated, v.size() * sizeof(int)); in TEST() 1596 EXPECT_THAT(allocated, 0); in TEST() 1599 EXPECT_THAT(allocated, in TEST() 1753 int64_t allocated = 0; TEST() local 1763 int64_t allocated = 0; TEST() local [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | get-binary-name-test.c | 34 size_t allocated = 128; in START_TEST() local 37 exename = pa_xmalloc(allocated); in START_TEST() 39 if (!pa_get_binary_name(exename, allocated)) { in START_TEST() 45 if (strlen(exename) < allocated - 1) { in START_TEST() 52 allocated *= 2; in START_TEST()
|
/third_party/python/Include/internal/ |
H A D | pycore_blocks_output_buffer.h | 46 // Number of whole allocated size 47 Py_ssize_t allocated; member 68 allocated size growth step is: 98 On success, return allocated size (>=0) 134 buffer->allocated = block_size; in _BlocksOutputBuffer_InitAndGrow() 146 On success, return allocated size (>=0) 175 buffer->allocated = init_size; in _BlocksOutputBuffer_InitWithSize() 184 On success, return allocated size (>=0) 213 Py_ssize_t rest = buffer->max_length - buffer->allocated; in _BlocksOutputBuffer_Grow() 222 // check buffer->allocated overflo in _BlocksOutputBuffer_Grow() [all...] |
H A D | pycore_list.h | 49 Py_ssize_t allocated = self->allocated; in _PyList_AppendTakeRef() local 51 if (allocated > len) { in _PyList_AppendTakeRef()
|
/third_party/skia/third_party/externals/freetype/src/psaux/ |
H A D | psarrst.c | 67 arrstack->allocated = 0; in cf2_arrstack_init() 82 arrstack->allocated = 0; in cf2_arrstack_finalize() 114 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 144 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 216 if ( arrstack->count == arrstack->allocated ) in cf2_arrstack_push() 220 arrstack, arrstack->allocated * 2 + 16 ) ) in cf2_arrstack_push()
|
/third_party/libwebsockets/lib/core/ |
H A D | alloc.c | 32 static size_t allocated; variable 127 allocated -= malloc_usable_size(ptr); in _realloc() 136 allocated += malloc_usable_size(v); in _realloc() 142 allocated -= malloc_usable_size(ptr); in _realloc() 175 return allocated; in lws_get_allocated_heap()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
H A D | if_nameindex.c | 21 unsigned int num, allocated, str_bytes; member 63 if (ctx->num >= ctx->allocated) { in netlink_msg_to_nameindex() 64 size_t a = ctx->allocated ? ctx->allocated * 2 + 1 : 8; in netlink_msg_to_nameindex() 69 ctx->allocated = a; in netlink_msg_to_nameindex()
|
/third_party/musl/src/network/ |
H A D | if_nameindex.c | 20 unsigned int num, allocated, str_bytes; member 62 if (ctx->num >= ctx->allocated) { in netlink_msg_to_nameindex() 63 size_t a = ctx->allocated ? ctx->allocated * 2 + 1 : 8; in netlink_msg_to_nameindex() 68 ctx->allocated = a; in netlink_msg_to_nameindex()
|
/third_party/elfutils/libdw/ |
H A D | dwarf_getpubnames.c | 46 size_t allocated = 0; in get_offsets() local 57 if (cnt >= allocated) in get_offsets() 59 allocated = MAX (10, 2 * allocated); in get_offsets() 60 struct pubnames_s *newmem = realloc (mem, allocated * entsize); in get_offsets()
|
/third_party/mesa3d/src/util/ |
H A D | blob.c | 52 if (blob->size + additional <= blob->allocated) in grow_to_fit() 60 if (blob->allocated == 0) in grow_to_fit() 63 to_allocate = blob->allocated * 2; in grow_to_fit() 65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit() 74 blob->allocated = to_allocate; in grow_to_fit() 112 blob->allocated = 0; in blob_init() 122 blob->allocated = size; in blob_init_fixed()
|
/third_party/eudev/src/shared/ |
H A D | process-util.c | 68 size_t len = 0, allocated = 0; in get_process_cmdline() local 72 if (!GREEDY_REALLOC(r, allocated, len+2)) { in get_process_cmdline() 150 size_t allocated = 0, sz = 0; in get_process_environ() local 162 if (!GREEDY_REALLOC(outcome, allocated, sz + 5)) in get_process_environ()
|
/third_party/googletest/googletest/samples/ |
H A D | sample10_unittest.cc | 61 static int allocated() { return allocated_; } in allocated() function in __anon3015::Water 77 initially_allocated_ = Water::allocated(); 82 int difference = Water::allocated() - initially_allocated_;
|
/third_party/node/deps/v8/src/interpreter/ |
H A D | bytecode-register-optimizer.cc | 19 bool allocated) in RegisterInfo() 23 allocated_(allocated), in RegisterInfo() 36 // Get a member of the register's equivalence set that is allocated. 37 // Returns itself if allocated, and nullptr if there is no unallocated 70 bool allocated() const { return allocated_; } in allocated() function in v8::internal::interpreter::final 71 void set_allocated(bool allocated) { allocated_ = allocated; } in set_allocated() argument 144 if (visitor->allocated()) { in GetAllocatedEquivalent() 189 if (visitor->allocated() && in GetEquivalentToMaterialize() 267 } else if (reg_info->allocated() in EnsureAllRegistersAreFlushed() 18 RegisterInfo(Register reg, uint32_t equivalence_id, bool materialized, bool allocated) RegisterInfo() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | picture_psnr_enc.c | 136 uint8_t* allocated = NULL; in WebPPlaneDistortion() local 151 allocated = in WebPPlaneDistortion() 152 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion() 153 if (allocated == NULL) return 0; in WebPPlaneDistortion() 154 tmp1 = allocated; in WebPPlaneDistortion() 166 WebPSafeFree(allocated); in WebPPlaneDistortion()
|
/third_party/python/Modules/ |
H A D | zlibmodule.c | 25 Py_ssize_t allocated; in OutputBuffer_InitAndGrow() local 27 allocated = _BlocksOutputBuffer_InitAndGrow( in OutputBuffer_InitAndGrow() 29 *avail_out = (uint32_t) allocated; in OutputBuffer_InitAndGrow() 30 return allocated; in OutputBuffer_InitAndGrow() 39 Py_ssize_t allocated; in OutputBuffer_Grow() local 41 allocated = _BlocksOutputBuffer_Grow( in OutputBuffer_Grow() 43 *avail_out = (uint32_t) allocated; in OutputBuffer_Grow() 44 return allocated; in OutputBuffer_Grow() 94 Py_ssize_t allocated = _BlocksOutputBuffer_InitWithSize( in OutputBuffer_WindowInitWithSize() local 97 if (allocated > in OutputBuffer_WindowInitWithSize() 116 Py_ssize_t allocated; OutputBuffer_WindowGrow() local [all...] |