Searched refs:array (Results 1 - 25 of 915) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib.old/dist/src/egl/main/
H A Deglarray.c38 * Grow the size of the array.
41 _eglGrowArray(_EGLArray *array) argument
46 new_size = array->MaxSize;
47 while (new_size <= array->Size)
50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0]));
52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d",
53 array->Name, new_size);
57 array->Elements = elems;
58 array
70 _EGLArray *array; local in function:_eglCreateArray
90 _eglDestroyArray(_EGLArray * array,void (* free_cb)(void *)) argument
106 _eglAppendArray(_EGLArray * array,void * elem) argument
119 _eglEraseArray(_EGLArray * array,EGLint i,void (* free_cb)(void *)) argument
135 _eglFindArray(_EGLArray * array,void * elem) argument
153 _eglFilterArray(_EGLArray * array,void ** data,EGLint size,_EGLArrayForEach filter,void * filter_data) argument
181 _eglFlattenArray(_EGLArray * array,void * buffer,EGLint elem_size,EGLint size,_EGLArrayForEach flatten) argument
[all...]
H A Deglarray.h58 _eglDestroyArray(_EGLArray *array, void (*free_cb)(void *));
62 _eglAppendArray(_EGLArray *array, void *elem);
66 _eglEraseArray(_EGLArray *array, EGLint i, void (*free_cb)(void *));
70 _eglFindArray(_EGLArray *array, void *elem);
74 _eglFilterArray(_EGLArray *array, void **data, EGLint size,
79 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size,
84 _eglGetArraySize(_EGLArray *array) argument
86 return (array) ? array->Size : 0;
/xsrc/external/mit/MesaLib/dist/src/egl/main/
H A Deglarray.c38 * Grow the size of the array.
41 _eglGrowArray(_EGLArray *array) argument
46 new_size = array->MaxSize;
47 while (new_size <= array->Size)
50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0]));
52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d",
53 array->Name, new_size);
57 array->Elements = elems;
58 array
70 _EGLArray *array; local in function:_eglCreateArray
90 _eglDestroyArray(_EGLArray * array,void (* free_cb)(void *)) argument
106 _eglAppendArray(_EGLArray * array,void * elem) argument
119 _eglEraseArray(_EGLArray * array,EGLint i,void (* free_cb)(void *)) argument
135 _eglFindArray(_EGLArray * array,void * elem) argument
153 _eglFilterArray(_EGLArray * array,void ** data,EGLint size,_EGLArrayForEach filter,void * filter_data) argument
181 _eglFlattenArray(_EGLArray * array,void * buffer,EGLint elem_size,EGLint size,_EGLArrayForEach flatten) argument
[all...]
H A Deglarray.h58 _eglDestroyArray(_EGLArray *array, void (*free_cb)(void *));
62 _eglAppendArray(_EGLArray *array, void *elem);
66 _eglEraseArray(_EGLArray *array, EGLint i, void (*free_cb)(void *));
70 _eglFindArray(_EGLArray *array, void *elem);
74 _eglFilterArray(_EGLArray *array, void **data, EGLint size,
79 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size,
84 _eglGetArraySize(_EGLArray *array) argument
86 return (array) ? array->Size : 0;
/xsrc/external/mit/libXdmcp/dist/
H A DRead.c53 XdmcpReadARRAY8 (XdmcpBufferPtr buffer, ARRAY8Ptr array) argument
58 * When returning FALSE, guarantee that array->data = 0.
59 * This allows the user to safely call XdmcpDisposeARRAY8(array)
61 * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
62 * so we must guarantee that array->data is NULL or a malloced pointer.
64 if (!XdmcpReadCARD16 (buffer, &array->length)) {
65 array->data = NULL;
68 if (!array->length)
70 array
90 XdmcpReadARRAY16(XdmcpBufferPtr buffer,ARRAY16Ptr array) argument
127 XdmcpReadARRAY32(XdmcpBufferPtr buffer,ARRAY32Ptr array) argument
164 XdmcpReadARRAYofARRAY8(XdmcpBufferPtr buffer,ARRAYofARRAY8Ptr array) argument
[all...]
H A DArray.c65 XdmcpAllocARRAY8 (ARRAY8Ptr array, int length) argument
69 array->data = NULL;
71 array->data = xmalloc(length * sizeof (CARD8));
73 if (array->data == NULL) {
74 array->length = 0;
77 array->length = (CARD16) length;
82 XdmcpAllocARRAY16 (ARRAY16Ptr array, int length) argument
86 array->data = NULL;
88 array->data = xmalloc(length * sizeof (CARD16));
90 if (array
99 XdmcpAllocARRAY32(ARRAY32Ptr array,int length) argument
116 XdmcpAllocARRAYofARRAY8(ARRAYofARRAY8Ptr array,int length) argument
157 XdmcpReallocARRAY8(ARRAY8Ptr array,int length) argument
174 XdmcpReallocARRAYofARRAY8(ARRAYofARRAY8Ptr array,int length) argument
194 XdmcpReallocARRAY16(ARRAY16Ptr array,int length) argument
210 XdmcpReallocARRAY32(ARRAY32Ptr array,int length) argument
227 XdmcpDisposeARRAY8(ARRAY8Ptr array) argument
235 XdmcpDisposeARRAY16(ARRAY16Ptr array) argument
243 XdmcpDisposeARRAY32(ARRAY32Ptr array) argument
251 XdmcpDisposeARRAYofARRAY8(ARRAYofARRAY8Ptr array) argument
[all...]
H A DWrite.c63 XdmcpWriteARRAY8 (XdmcpBufferPtr buffer, const ARRAY8Ptr array) argument
67 if (!XdmcpWriteCARD16 (buffer, array->length))
69 for (i = 0; i < (int)array->length; i++)
70 if (!XdmcpWriteCARD8 (buffer, array->data[i]))
76 XdmcpWriteARRAY16 (XdmcpBufferPtr buffer, const ARRAY16Ptr array) argument
80 if (!XdmcpWriteCARD8 (buffer, array->length))
82 for (i = 0; i < (int)array->length; i++)
83 if (!XdmcpWriteCARD16 (buffer, array->data[i]))
89 XdmcpWriteARRAY32 (XdmcpBufferPtr buffer, const ARRAY32Ptr array) argument
93 if (!XdmcpWriteCARD8 (buffer, array
102 XdmcpWriteARRAYofARRAY8(XdmcpBufferPtr buffer,ARRAYofARRAY8Ptr array) argument
[all...]
/xsrc/external/mit/xorgproto/dist/include/X11/extensions/
H A Dxtrapbits.h44 typedef unsigned char *UByteP; /* Pointer to an unsigned byte array */
56 #define ByteInArray(array,bit) /* Returns the byte offset to get to a bit */ \
57 (((UByteP)(array))[(bit) / BitsInByte])
59 #define BitIsTrue(array,bit) /* Test to see if a specific bit is True */ \
60 (ByteInArray(array,bit) & BitInByte(bit))
62 #define BitIsFalse(array,bit) /* Test to see if a specific bit is False */ \
63 (!(BitIsTrue(array,bit)))
65 #define BitTrue(array,bit) /* Set a specific bit to be True */ \
66 (ByteInArray(array,bit) |= BitInByte(bit))
68 #define BitFalse(array,bi
[all...]
/xsrc/external/mit/glu/dist/src/libnurbs/internals/
H A Dreader.cc60 O_pwlcurve::O_pwlcurve( long _type, long count, INREAL *array, long byte_stride, TrimVertex *trimpts ) argument
81 if(equal(prev->param[0], array[0]) && equal(prev->param[1], array[1]))
89 v->param[0] = (REAL) array[0];
90 v->param[1] = (REAL) array[1];
95 array = (INREAL *) (((char *) array) + byte_stride);
103 v->param[0] = (REAL) array[0] / (REAL) array[2];
104 v->param[1] = (REAL) array[
112 O_pwlcurve(long _type,long count,INREAL * array,long byte_stride,TrimVertex * trimpts) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
H A Dast_array_index.cpp40 * If \c ir is a reference to an array for which we are tracking the max array
44 * This function also checks whether the array is a built-in array whose
58 * the size of a built-in array to be too large.
66 * - Accessing an element of an array that is a member of a named
69 * - Accessing an element of an array that is a member of a named
70 * interface block array (e.g. ifc[j].foo[i]).
72 * - Accessing an element of an array that is a member of a named
73 * interface block array o
116 get_implicit_array_size(struct _mesa_glsl_parse_state * state,ir_rvalue * array) argument
143 _mesa_ast_array_index_to_hir(void * mem_ctx,struct _mesa_glsl_parse_state * state,ir_rvalue * array,ir_rvalue * idx,YYLTYPE & loc,YYLTYPE & idx_loc) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
H A Dast_array_index.cpp40 * If \c ir is a reference to an array for which we are tracking the max array
44 * This function also checks whether the array is a built-in array whose
58 * the size of a built-in array to be too large.
66 * - Accessing an element of an array that is a member of a named
69 * - Accessing an element of an array that is a member of a named
70 * interface block array (e.g. ifc[j].foo[i]).
72 * - Accessing an element of an array that is a member of a named
73 * interface block array o
116 get_implicit_array_size(struct _mesa_glsl_parse_state * state,ir_rvalue * array) argument
143 _mesa_ast_array_index_to_hir(void * mem_ctx,struct _mesa_glsl_parse_state * state,ir_rvalue * array,ir_rvalue * idx,YYLTYPE & loc,YYLTYPE & idx_loc) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.h51 * Generic helper for growing an array that has separate size/count
66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \
74 memcpy(newarray, (array), (size) * sizeof(type)); \
75 (array) = newarray; \
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.h51 * Generic helper for growing an array that has separate size/count
66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \
74 memcpy(newarray, (array), (size) * sizeof(type)); \
75 (array) = newarray; \
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/
H A Dsfn_shader_compute.h52 bool emit_load_3vec(nir_intrinsic_instr* instr, const std::array<PValue,3>& src);
56 std::array<PValue,3> m_workgroup_id;
57 std::array<PValue,3> m_local_invocation_id;
/xsrc/external/mit/xf86-video-geode/dist/src/gfx/
H A Dgfx_defs.h157 * array - pointer to an array of unsigned characters.
158 * array_offset - offset into the array from which to pull the first
162 #define WRITE_SCRATCH_STRING(dwords, bytes, array, array_offset) \
165 _asm { mov esi, array } \
183 * array - pointer to an array of unsigned characters.
184 * array_offset - offset into the array from which to pull the first
188 #define WRITE_FRAME_BUFFER_STRING32(fboffset, bytes, array, array_offset) \
195 _asm { mov esi, array } \
[all...]
/xsrc/external/mit/MesaLib/dist/src/glx/
H A Dclientattrib.c40 do_enable_disable(GLenum array, GLboolean val) argument
46 if (array == GL_TEXTURE_COORD_ARRAY) {
50 if (!__glXSetArrayEnable(state, array, index, val)) {
56 __indirect_glEnableClientState(GLenum array) argument
58 do_enable_disable(array, GL_TRUE);
62 __indirect_glDisableClientState(GLenum array) argument
64 do_enable_disable(array, GL_FALSE);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/
H A Ds_fog.c94 const GLfloat fogCoord = span->array->attribs[VARYING_SLOT_FOGC][i][0]; \
127 * The fog value are either in the span->array->fog array or interpolated from
142 if (span->array->ChanType == GL_UNSIGNED_BYTE) {
147 else if (span->array->ChanType == GL_UNSIGNED_SHORT) {
168 if (span->array->ChanType == GL_UNSIGNED_BYTE) {
169 GLubyte (*rgba)[4] = span->array->rgba8;
172 else if (span->array->ChanType == GL_UNSIGNED_SHORT) {
173 GLushort (*rgba)[4] = span->array->rgba16;
177 GLfloat (*rgba)[4] = span->array
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/swrast/
H A Ds_fog.c94 const GLfloat fogCoord = span->array->attribs[VARYING_SLOT_FOGC][i][0]; \
127 * The fog value are either in the span->array->fog array or interpolated from
142 if (span->array->ChanType == GL_UNSIGNED_BYTE) {
147 else if (span->array->ChanType == GL_UNSIGNED_SHORT) {
168 if (span->array->ChanType == GL_UNSIGNED_BYTE) {
169 GLubyte (*rgba)[4] = span->array->rgba8;
172 else if (span->array->ChanType == GL_UNSIGNED_SHORT) {
173 GLushort (*rgba)[4] = span->array->rgba16;
177 GLfloat (*rgba)[4] = span->array
[all...]
/xsrc/external/mit/glu/dist/src/libnurbs/nurbtess/
H A DrectBlock.cc124 ret += array[i]->num_quads();
133 array = (rectBlock**) malloc(sizeof(rectBlock*) * s);
134 assert(array);
137 array[i] = NULL;
145 if(array[i] != NULL)
146 delete array[i];
148 free(array);
151 //put to the end of the array, check the size
164 temp[i] = array[i];
166 free(array);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_surfaces.c41 { /* or 2D array */
49 if(!us->u.array)
50 us->u.array = CALLOC(pt->last_level + 1, sizeof(struct pipe_surface *));
51 ps = us->u.array[level];
73 us->u.array[level] = ps;
84 { /* or 2D array */
88 us->u.array[ps->u.tex.level] = 0;
95 { /* or 2D array */
111 if(us->u.array)
116 struct pipe_surface *ps = us->u.array[
[all...]
/xsrc/external/mit/libXdmcp/dist/include/X11/
H A DXdmcp.h132 extern int XdmcpWriteARRAY16(XdmcpBufferPtr buffer, const ARRAY16Ptr array);
134 extern int XdmcpWriteARRAY32(XdmcpBufferPtr buffer, const ARRAY32Ptr array);
136 extern int XdmcpWriteARRAY8(XdmcpBufferPtr buffer, const ARRAY8Ptr array);
138 extern int XdmcpWriteARRAYofARRAY8(XdmcpBufferPtr buffer, const ARRAYofARRAY8Ptr array);
152 extern int XdmcpReadARRAY16(XdmcpBufferPtr buffer, ARRAY16Ptr array);
154 extern int XdmcpReadARRAY32(XdmcpBufferPtr buffer, ARRAY32Ptr array);
156 extern int XdmcpReadARRAY8(XdmcpBufferPtr buffer, ARRAY8Ptr array);
158 extern int XdmcpReadARRAYofARRAY8(XdmcpBufferPtr buffer, ARRAYofARRAY8Ptr array);
175 extern void XdmcpDisposeARRAY8(ARRAY8Ptr array);
177 extern void XdmcpDisposeARRAY16(ARRAY16Ptr array);
[all...]
/xsrc/external/mit/brotli/dist/c/enc/
H A Dwrite_bits.h7 /* Write bits into a byte array. */
37 uint8_t* BROTLI_RESTRICT array) {
50 uint8_t* p = &array[*pos >> 3];
59 uint8_t* array_pos = &array[*pos >> 3];
77 size_t pos, uint8_t* array) {
80 array[pos >> 3] = 0;
34 BrotliWriteBits(size_t n_bits,uint64_t bits,size_t * BROTLI_RESTRICT pos,uint8_t * BROTLI_RESTRICT array) argument
76 BrotliWriteBitsPrepareStorage(size_t pos,uint8_t * array) argument
/xsrc/external/mit/pixman/dist/pixman/dither/
H A Dmake-blue-noise.c3 * The void-and-cluster method for dither array generation
209 array_init (array_t *array, int width, int height) argument
213 if (!array)
221 array->buffer = buffer;
222 array->width = width;
223 array->height = height;
229 array_get (array_t *array, int x, int y) argument
231 return &array->buffer[y * array->width + x];
235 array_save_ppm (array_t *array, cons argument
277 array_save(array_t * array,const char * filename) argument
324 array_destroy(array_t * array) argument
512 generate_dither_array(array_t * array,pattern_t const * prototype,matrix_t const * matrix,pattern_t * temp_pattern,matrix_t * temp_matrix) argument
579 array_t array; local in function:generate
[all...]
/xsrc/external/mit/xorg-server.old/dist/os/
H A Dbacktrace.c40 void *array[64]; local in function:xorg_backtrace
45 size = backtrace(array, 64);
47 int rc = dladdr(array[i], &info);
49 ErrorF("%d: ?? [%p]\n", i, array[i]);
55 info.dli_sname, (long unsigned int)((char *) array[i] - (char *) info.dli_saddr), array[i]);
58 info.dli_fbase, (long unsigned int)((char *) array[i] - (char *) info.dli_fbase), array[i]);
/xsrc/external/mit/libdrm/dist/radeon/
H A Dbof.c36 bof_t **array; local in function:bof_entry_grow
40 array = realloc(bof->array, (bof->nentry + 16) * sizeof(void*));
41 if (array == NULL)
43 bof->array = array;
69 if (!strcmp(object->array[i]->value, keyname)) {
70 return object->array[i + 1];
89 object->array[object->array_size++] = key;
90 object->array[objec
102 bof_t *array = bof_object(); local in function:bof_array
111 bof_array_append(bof_t * array,bof_t * value) argument
[all...]

Completed in 16 milliseconds

1234567891011>>