Home
last modified time | relevance | path

Searched refs:elsize (Results 1 – 25 of 1780) sorted by relevance

12345678910>>...72

/dports/devel/ding-libs/ding-libs-0.6.1/refarray/
H A Dref_array.c105 new_ra->elsize = elemsz; in ref_array_create()
204 ra->elsize); in ref_array_append()
236 ra->elsize); in ref_array_get()
310 ra->elsize); in ref_array_insert()
316 ra->elsize); in ref_array_insert()
353 ra->elsize); in ref_array_replace()
389 ra->elsize); in ref_array_remove()
460 ra->elsize); in ref_array_swap()
463 ra->elsize); in ref_array_swap()
466 ra->elsize); in ref_array_swap()
[all …]
/dports/science/gromacs/gromacs-2021.4/src/gromacs/utility/
H A Dsmalloc.cpp96 if ((nelem == 0) || (elsize == 0)) in save_calloc()
103 if (nelem * elsize >= PRINT_ALLOC_KB * 1024) in save_calloc()
113 if ((p = malloc((size_t)nelem * (size_t)elsize)) == NULL) in save_calloc()
120 memset(p, 0, (size_t)(nelem * elsize)); in save_calloc()
122 if ((p = calloc(nelem, elsize)) == nullptr) in save_calloc()
137 size_t size = nelem * elsize; in save_realloc()
208 if (nelem == 0 || elsize == 0) in save_malloc_aligned()
215 if (nelem * elsize >= PRINT_ALLOC_KB * 1024) in save_malloc_aligned()
223 p = gmx::AlignedAllocationPolicy::malloc(nelem * elsize); in save_malloc_aligned()
230 nelem, elsize, name, file, line); in save_malloc_aligned()
[all …]
/dports/databases/grass7/grass-7.8.6/lib/vector/diglib/
H A Dallocation.c91 void *dig_falloc(int nelem, int elsize) in dig_falloc() argument
95 if ((ret = dig__falloc(nelem, elsize)) == NULL) { in dig_falloc()
103 void *dig_frealloc(void *oldptr, int nelem, int elsize, int oldnelem) in dig_frealloc() argument
118 void *dig__falloc(int nelem, int elsize) in dig__falloc() argument
122 if (elsize == 0) { in dig__falloc()
123 elsize = 4; in dig__falloc()
129 ptr = G_calloc(nelem, elsize); in dig__falloc()
137 if (elsize == 0) { in dig__frealloc()
138 elsize = 4; in dig__frealloc()
144 ptr = G_calloc(nelem, elsize); in dig__frealloc()
[all …]
/dports/graphics/box/box-0.4.0/libs/g/
H A Dbuffer.c68 buffer->size = (buffer->dim)*buffer->elsize; \
85 if (elsize<1 || mindim<1) { in buff_create()
97 buffer->elsize = elsize; in buff_create()
124 if ( (elsize<1) || (mindim<1) ) { in buff_recycle()
137 buffer->dim = buffer->size / elsize; in buff_recycle()
145 return buff_create(buffer, elsize, mindim); in buff_recycle()
150 buffer->elsize = elsize; in buff_recycle()
164 tpos = buffer->numel++ * buffer->elsize; in buff_push()
170 memcpy(tptr, elem, buffer->elsize); in buff_push()
195 tpos = buffer->numel * buffer->elsize; in buff_mpush()
[all …]
/dports/math/libxsmm/libxsmm-1.16.3/samples/utilities/diff/
H A Ddiff.c24 …de = (0 >= incrmt ? LIBXSMM_MAX(LIBXSMM_DESCRIPTOR_MAXSIZE, elsize) : LIBXSMM_MAX(incrmt, elsize)); in main()
34 LIBXSMM_ASSERT(elsize <= stride); in main()
57 if (elsize < 256) { in main()
76 if (stride == elsize && 0 == strided) { in main()
82 diff += libxsmm_memcmp(aj, bj, elsize); in main()
98 if (stride == elsize && 0 == strided) { in main()
108 diff += (0 != memcmp(aj, bj, elsize)); in main()
144 const int r = rand() % elsize; in main()
149 if (0 != memcmp(aj, bj, elsize)) { in main()
150 if (elsize < 256 && 0 == libxsmm_diff(aj, bj, (unsigned char)elsize)) ++diff; in main()
[all …]
/dports/devel/publib/publib-0.40/strutil/
H A Dmemisort.c41 void memisort(void *base, size_t nelem, size_t elsize, const void *new, in memisort() argument
46 assert(elsize > 0); in memisort()
49 assert(!memoverlap(base, nelem*elsize, new, elsize)); in memisort()
52 top = cbase + nelem*elsize; in memisort()
53 for (p = top; p > cbase; p -= elsize) in memisort()
54 if ((*comp)(new, p-elsize) >= 0) in memisort()
57 memmove(p+elsize, p, (size_t) (top-p)); in memisort()
59 memcpy(p, new, elsize); in memisort()
/dports/math/py-numpy/numpy-1.20.3/numpy/core/src/multiarray/
H A Dlegacy_dtype_implementation.c92 size1 = type1->elsize; in PyArray_LegacyEquivTypes()
93 size2 = type2->elsize; in PyArray_LegacyEquivTypes()
186 ret = (from->elsize <= to->elsize); in PyArray_LegacyCanCastTo()
189 ret = (from->elsize << 2 <= to->elsize); in PyArray_LegacyCanCastTo()
194 ret = (from->elsize <= to->elsize); in PyArray_LegacyCanCastTo()
262 if (from->elsize > 8 || from->elsize < 0) { in PyArray_LegacyCanCastTo()
265 else if (to->elsize >= in PyArray_LegacyCanCastTo()
272 if (from->elsize > 8 || from->elsize < 0) { in PyArray_LegacyCanCastTo()
510 return (from->elsize == to->elsize); in PyArray_LegacyCanCastTypeTo()
512 return (from->elsize <= to->elsize); in PyArray_LegacyCanCastTypeTo()
[all …]
/dports/math/py-numpy/numpy-1.20.3/numpy/core/src/npysort/
H A Dmergesort.c.src258 if (elsize == 0) {
269 vp = malloc(elsize);
338 if (elsize == 0) {
372 pm = pl + (((pr - pl)/elsize) >> 1)*elsize;
382 pm += elsize;
383 pk += elsize;
395 for (pi = pl + elsize; pi < pr; pi += elsize) {
423 if (elsize == 0) {
428 vp = malloc(elsize);
461 if (cmp(v + (*pm)*elsize, v + (*pj)*elsize, arr) < 0) {
[all …]
H A Dheapsort.c.src309 GENERIC_COPY(tmp, a + l*elsize, elsize);
311 if (j < num && cmp(a + j*elsize, a + (j+1)*elsize, arr) < 0) {
315 GENERIC_COPY(a + i*elsize, a + j*elsize, elsize);
323 GENERIC_COPY(a + i*elsize, tmp, elsize);
327 GENERIC_COPY(tmp, a + num*elsize, elsize);
328 GENERIC_COPY(a + num*elsize, a + elsize, elsize);
331 if (j < num && cmp(a + j*elsize, a + (j+1)*elsize, arr) < 0) {
335 GENERIC_COPY(a + i*elsize, a + j*elsize, elsize);
343 GENERIC_COPY(a + i*elsize, tmp, elsize);
369 if (cmp(v + tmp*elsize, v + a[j]*elsize, arr) < 0) {
[all …]
/dports/graphics/bmeps/dktools-4.31.1/src/libdk4base/
H A Ddk4mem.c309 assert(0 < elsize); in dk4mem_malloc()
311 assert((SIZE_MAX / elsize) >= nelem); in dk4mem_malloc()
313 if ((0 < elsize) && (0 < nelem)) { in dk4mem_malloc()
314 if ((SIZE_MAX / elsize) >= nelem) { in dk4mem_malloc()
315 bytes = elsize * nelem; in dk4mem_malloc()
334 assert(0 < elsize); in dk4mem_calloc()
338 if ((0 < elsize) && (0 < nelem)) { in dk4mem_calloc()
344 bytes = elsize * nelem; in dk4mem_calloc()
361 back = calloc(nelem, elsize); in dk4mem_calloc()
372 back = calloc(nelem, elsize); in dk4mem_calloc()
[all …]
/dports/www/ufdbguard/ufdbGuard-1.35.3/src/
H A Dufdbbase.c156 void * ufdbMalloc( size_t elsize ) in ufdbMalloc() argument
166 p = rte_malloc( NULL, elsize, 0 ); in ufdbMalloc()
168 p = cvmx_malloc( alist, elsize ); in ufdbMalloc()
174 p = (void *) malloc( elsize ); in ufdbMalloc()
176 if (p == NULL && elsize > 0) in ufdbMalloc()
229 p = memalign( alignment, elsize ); in ufdbMallocAligned()
235 p = malloc( elsize ); in ufdbMallocAligned()
241 alignment, retval, elsize, p ); in ufdbMallocAligned()
247 p = (void *) ufdbMalloc( elsize ); in ufdbMallocAligned()
250 if (p == NULL && elsize > 0) in ufdbMallocAligned()
[all …]
/dports/graphics/geomview/geomview-1.9.5/src/lib/oogl/util/
H A Dvvec.h29 static inline void vvinit(vvec *v, int elsize, int minelems);
39 vvinit(vvec *v, int elsize, int minelems) in vvinit() argument
41 v->elsize = elsize; in vvinit()
62 memset(v->base + v->elsize*v->count, 0, in vvzero()
63 v->elsize * (v->allocated - v->count)); in vvzero()
73 int want = newalloc * v->elsize; in vvtrim()
120 want * v->elsize, "extending vvec"); in vvneeds()
126 memcpy(v->base, was, (v->count<had ? v->count:had) * v->elsize); in vvneeds()
131 memset(v->base + v->elsize * had, 0, in vvneeds()
132 v->elsize * (want-had)); in vvneeds()
[all …]
/dports/audio/julius/julius-4.1.2/libsent/src/util/
H A Dmymalloc.c59 mymalloc_big(size_t elsize, size_t nelem) in mymalloc_big() argument
65 limit = (double)4294967296.0 / elsize; /* 2^32 */ in mymalloc_big()
67 jlog("Error: mymalloc_big: %zu bytes x %zu unit exceeds 4GB limit\n", elsize, nelem); in mymalloc_big()
71 if ( (p = malloc(nelem * elsize)) == NULL) { in mymalloc_big()
72 jlog("Error: mymalloc: failed to allocate %zu bytes\n", nelem * elsize); in mymalloc_big()
106 mycalloc(size_t nelem, size_t elsize) in mycalloc() argument
109 if ( (p = calloc(nelem,elsize)) == NULL) { in mycalloc()
110 jlog("Error: mymalloc: failed to clear-allocate %zu bytes\n", nelem*elsize); in mycalloc()
/dports/mail/mailfromd/mailfromd-8.10/src/
H A Dstack.c28 size_t elsize; member
32 #define STACK_PTR(s, n) (void*)((s)->base + (n) * (s)->elsize)
35 mf_stack_create(size_t elsize, size_t count) in mf_stack_create() argument
38 stk->elsize = elsize; in mf_stack_create()
45 stk->elsize); in mf_stack_create()
64 stk->elsize); in mf_stack_push()
65 memcpy(STACK_PTR(stk, stk->tos), item, stk->elsize); in mf_stack_push()
76 memcpy(ptr, STACK_PTR(stk, stk->tos), stk->elsize); in mf_stack_pop()
86 memcpy(ptr, STACK_PTR(stk, stk->tos - 1 - n), stk->elsize); in mf_stack_peek()
/dports/multimedia/handbrake/ffmpeg-4.4/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/www/firefox/firefox-99.0/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
112 return ret / mq->elsize; in av_thread_message_queue_nb_elems()
131 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
141 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
146 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
148 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize; member
42 unsigned elsize) in av_thread_message_queue_alloc() argument
48 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) { in av_thread_message_queue_alloc()
74 rmq->elsize = elsize; in av_thread_message_queue_alloc()
111 while (!mq->err_send && av_fifo_space(mq->fifo) < mq->elsize) { in av_thread_message_queue_send_locked()
118 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_send_locked()
128 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) { in av_thread_message_queue_recv_locked()
133 if (av_fifo_size(mq->fifo) < mq->elsize) in av_thread_message_queue_recv_locked()
135 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL); in av_thread_message_queue_recv_locked()
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/media/ffvpx/libavutil/
H A Dthreadmessage.c33 unsigned elsize;
42 unsigned elsize)
48 if (nelem > INT_MAX / elsize)
67 if (!(rmq->fifo = av_fifo_alloc(elsize * nelem))) {
74 rmq->elsize = elsize;
111 while (!mq->err_send && av_fifo_space(mq->fifo) < mq->elsize) {
118 av_fifo_generic_write(mq->fifo, msg, mq->elsize, NULL);
128 while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) {
133 if (av_fifo_size(mq->fifo) < mq->elsize)
135 av_fifo_generic_read(mq->fifo, msg, mq->elsize, NULL);
[all …]

12345678910>>...72