Home
last modified time | relevance | path

Searched refs:numElements (Results 1 – 25 of 117) sorted by relevance

12345

/external/swiftshader/src/D3D9/
DDirect3DVertexDeclaration9.cpp43 numElements = size / sizeof(D3DVERTEXELEMENT9); in Direct3DVertexDeclaration9()
44 this->vertexElement = new D3DVERTEXELEMENT9[numElements]; in Direct3DVertexDeclaration9()
56 numElements = 0; in Direct3DVertexDeclaration9()
66 vertexElement[numElements].Stream = 0; in Direct3DVertexDeclaration9()
67 vertexElement[numElements].Offset = offset; in Direct3DVertexDeclaration9()
68 vertexElement[numElements].Type = D3DDECLTYPE_FLOAT3; in Direct3DVertexDeclaration9()
69 vertexElement[numElements].Method = D3DDECLMETHOD_DEFAULT; in Direct3DVertexDeclaration9()
70 vertexElement[numElements].Usage = D3DDECLUSAGE_POSITION; in Direct3DVertexDeclaration9()
71 vertexElement[numElements].UsageIndex = 0; in Direct3DVertexDeclaration9()
72 numElements++; in Direct3DVertexDeclaration9()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DResizableDoubleArray.java124 protected int numElements = 0; field in ResizableDoubleArray
187 numElements = initialArray.length; in ResizableDoubleArray()
296 numElements++; in addElement()
297 if ((startIndex + numElements) > internalArray.length) { in addElement()
300 internalArray[startIndex + (numElements - 1)] = value; in addElement()
313 final double[] tempArray = new double[numElements + values.length + 1]; in addElements()
314 System.arraycopy(internalArray, startIndex, tempArray, 0, numElements); in addElements()
315 System.arraycopy(values, 0, tempArray, numElements, values.length); in addElements()
318 numElements += values.length; in addElements()
340 if ((startIndex + (numElements + 1)) > internalArray.length) { in addElementRolling()
[all …]
/external/deqp/framework/delibs/decpp/
DdeBlockBuffer.hpp57 void write (int numElements, const T* elements);
58 int tryWrite (int numElements, const T* elements);
62 void read (int numElements, T* elements);
63 int tryRead (int numElements, T* elements);
72 int writeToCurrentBlock (int numElements, const T* elements, bool blocking);
73 int readFromCurrentBlock(int numElements, T* elements, bool blocking);
175 int BlockBuffer<T>::writeToCurrentBlock (int numElements, const T* elements, bool blocking) in writeToCurrentBlock() argument
177 DE_ASSERT(numElements > 0 && elements != DE_NULL); in writeToCurrentBlock()
202 int numToWrite = de::min(numElements, m_blockSize-m_writePos); in writeToCurrentBlock()
218 int BlockBuffer<T>::readFromCurrentBlock (int numElements, T* elements, bool blocking) in readFromCurrentBlock() argument
[all …]
DdeArrayBuffer.hpp54 ArrayBuffer (size_t numElements);
55 ArrayBuffer (const T* ptr, size_t numElements);
61 …void setStorage (size_t numElements); // !< \note after a succesful call buffer contents are un…
84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer() argument
88 if (numElements) in ArrayBuffer()
91 const size_t storageSize = (numElements - 1) * Stride + sizeof(T); in ArrayBuffer()
98 m_cap = numElements; in ArrayBuffer()
103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements) in ArrayBuffer() argument
107 if (numElements) in ArrayBuffer()
110 ArrayBuffer<T,Alignment,Stride> tmp(numElements); in ArrayBuffer()
[all …]
DdeAppendList.cpp58 deUint32 numElements; member
63 : numElements (numElements_) in SharedState()
81 for (deUint32 elemNdx = 0; elemNdx < m_shared->numElements; elemNdx++) in run()
97 void runAppendListTest (deUint32 numThreads, deUint32 numElements, deUint32 numElementsHint) in runAppendListTest() argument
99 SharedState sharedState (numThreads, numElements, numElementsHint); in runAppendListTest()
111 DE_TEST_ASSERT(sharedState.testList.size() == (size_t)numElements*(size_t)numThreads); in runAppendListTest()
131 DE_TEST_ASSERT(countByThread[threadNdx] == numElements); in runAppendListTest()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmWorkgroupMemoryTests.cpp152 const int numElements = 128; in addComputeWorkgroupMemoryTests() local
282 vector<double> inputData = getFloat64s(rnd, numElements); in addComputeWorkgroupMemoryTests()
286 outputData.reserve(numElements); in addComputeWorkgroupMemoryTests()
287 for (deUint32 numIdx = 0; numIdx < numElements; ++numIdx) in addComputeWorkgroupMemoryTests()
288 outputData.push_back(inputData[numElements - numIdx - 1]); in addComputeWorkgroupMemoryTests()
309 vector<float> inputData = getFloat32s(rnd, numElements); in addComputeWorkgroupMemoryTests()
313 outputData.reserve(numElements); in addComputeWorkgroupMemoryTests()
314 for (deUint32 numIdx = 0; numIdx < numElements; ++numIdx) in addComputeWorkgroupMemoryTests()
315 outputData.push_back(inputData[numElements - numIdx - 1]); in addComputeWorkgroupMemoryTests()
340 vector<deFloat16> inputData = getFloat16s(rnd, numElements); in addComputeWorkgroupMemoryTests()
[all …]
DvktSpvAsm16bitStorageTests.cpp1152 const int numElements = 128; in addCompute16bitStorageUniform16To32Group() local
1252 …ecorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", false, 0, numElements, 1}, in addCompute16bitStorageUniform16To32Group()
1253 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", true, 5, numElements, 1}, in addCompute16bitStorageUniform16To32Group()
1254 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", true, 8, numElements, 1}, in addCompute16bitStorageUniform16To32Group()
1255 …e %v2f32arr ArrayStride 8\nOpDecorate %v2f16arr ArrayStride 4\n", false, 0, numElements / 2, 2}, in addCompute16bitStorageUniform16To32Group()
1256 …m4v2f32arr ArrayStride 32\nOpDecorate %m4v2f16arr ArrayStride 16\n", false, 0, numElements / 8, 8} in addCompute16bitStorageUniform16To32Group()
1259 …ecorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", false, 0, numElements, 8}, in addCompute16bitStorageUniform16To32Group()
1260 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", true, 5, numElements, 8}, in addCompute16bitStorageUniform16To32Group()
1261 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", true, 8, numElements, 8}, in addCompute16bitStorageUniform16To32Group()
1262 …e %v2f32arr ArrayStride 8\nOpDecorate %v2f16arr ArrayStride 16\n", false, 0, numElements / 2, 8}, in addCompute16bitStorageUniform16To32Group()
[all …]
DvktSpvAsmLoopDepInfTests.cpp149 const int numElements = 100; in getComputeShaderSpec() local
150 vector<float> inputFloats (numElements, 0); in getComputeShaderSpec()
151 vector<float> outputFloats (numElements, 0); in getComputeShaderSpec()
154 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec()
157 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec()
177 spec.numWorkGroups = tcu::IVec3(numElements, 1, 1); in getComputeShaderSpec()
DvktSpvAsmLoopDepLenTests.cpp165 const int numElements = 100; in getComputeShaderSpec() local
166 vector<float> inputFloats (numElements, 0); in getComputeShaderSpec()
167 vector<float> outputFloats (numElements, 0); in getComputeShaderSpec()
170 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec()
173 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec()
192 spec.numWorkGroups = tcu::IVec3(numElements, 1, 1); in getComputeShaderSpec()
DvktSpvAsmInstructionTests.cpp272 const deUint32 numElements = 64u; in createLocalSizeGroup() local
273 vector<float> positiveFloats (numElements, 0); in createLocalSizeGroup()
274 vector<float> negativeFloats (numElements, 0); in createLocalSizeGroup()
276 fillRandomScalars(rnd, 1.f, 100.f, &positiveFloats[0], numElements); in createLocalSizeGroup()
278 for (size_t ndx = 0; ndx < numElements; ++ndx) in createLocalSizeGroup()
284 spec.numWorkGroups = IVec3(numElements, 1, 1); in createLocalSizeGroup()
297 spec.assembly = getAsmForLocalSizeTest(true, false, IVec3(numElements, 1, 1), 0u); in createLocalSizeGroup()
300 spec.assembly = getAsmForLocalSizeTest(true, true, IVec3(numElements, 1, 1), 0u); in createLocalSizeGroup()
303 spec.assembly = getAsmForLocalSizeTest(false, true, IVec3(numElements, 1, 1), 0u); in createLocalSizeGroup()
306 spec.assembly = getAsmForLocalSizeTest(true, false, IVec3(1, numElements, 1), 1u); in createLocalSizeGroup()
[all …]
/external/deqp/framework/opengl/
DgluDrawUtil.hpp117 int numElements; //!< Number of elements in total. member
126 , numElements (numElements_) in VertexArrayPointer()
136 , numElements (0) in VertexArrayPointer()
162 int numElements; //!< Number of elements to be drawn. member
168 , numElements (numElements_) in PrimitiveList()
176 , numElements (numElements_) in PrimitiveList()
184 , numElements (0) in PrimitiveList()
209 inline PrimitiveList NAME (int numElements) \
211 return PrimitiveList(TYPE, numElements); \
213 inline PrimitiveList NAME (int numElements, const deUint8* indices) \
[all …]
DgluDrawUtil.cpp47 int numElements; member
62 , numElements (numElements_) in VertexAttributeDescriptor()
73 , numElements (0) in VertexAttributeDescriptor()
279 const int size = elementSize*va.pointer.numElements; in appendAttributeNonStrided()
288 va.pointer.numElements, in appendAttributeNonStrided()
305 dstVA.numElements == srcPtr.numElements); in copyToLayout()
316 for (int ndx = 0; ndx < dstVA.numElements; ndx++) in copyToLayout()
320 …emcpy((deUint8*)dstBasePtr + (deUintptr)dstVA.pointer, srcPtr.data, elementSize*dstVA.numElements); in copyToLayout()
397 vertexArray.pointer.numElements, in getUserPointerDescriptor()
462 if (primitives.numElements < 0) in isDrawCallValid()
[all …]
/external/deqp/framework/delibs/depool/
DdePoolArray.h43 int numElements; /*!< Number of elements in the array. */ member
99 int numElements; \
125 return arr->numElements; \
140 arr->numElements = size; \
146 arr->numElements = 0; \
151 DE_ASSERT(ndx >= 0 && ndx < arr->numElements); \
161 DE_ASSERT(ndx >= 0 && ndx < arr->numElements); \
171 if ((arr->numElements + 1 >= arr->capacity) && !TYPENAME##_reserve(arr, arr->numElements + 1)) \
173 arr->numElements++; \
174 TYPENAME##_set(arr, arr->numElements - 1, elem); \
[all …]
DdePoolHashArray.h91 DE_ASSERT(ndx >= 0 && ndx < hashArray->array->numElements); \
140 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
141 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \
143 if (!TYPENAME##Array_setSize(hashArray->array, numElements+1) || \
144 !TYPENAME##Hash_insert(hashArray->hash, key, numElements)) \
146 TYPENAME##Array_set(hashArray->array, numElements, value); \
152 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \
155 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \
156 if ((keys && !KEYARRAYTYPE##_setSize(keys, numElements)) || \
157 (values && !VALUEARRAYTYPE##_setSize(values, numElements))) \
DdePoolHeap.h104 int numElements = TYPENAME##Array_getNumElements(array); \
108 if (childNdx0 < numElements) \
110 int childNdx1 = deMin32(childNdx0 + 1, numElements - 1); \
147 int numElements = TYPENAME##Array_getNumElements(array); \
148 if (!TYPENAME##Array_setSize(array, numElements + 1)) \
150 TYPENAME##Array_set(array, numElements, elem); \
151 TYPENAME##_moveUp(heap, numElements); \
159 int numElements = TYPENAME##Array_getNumElements(array); \
160 TYPENAME##Array_set(array, 0, TYPENAME##Array_get(array, numElements-1)); \
161 TYPENAME##Array_setSize(array, numElements-1); \
DdePoolHash.h82 int numElements; \
113 return hash->numElements; \
231 hash->numElements = 0; \
285 hash->numElements--; \
299 if (hash->numElements > 0) \
327 if ((hash->numElements + 1) >= hash->slotTableSize * DE_HASH_ELEMENTS_PER_SLOT) \
361 hash->numElements++; \
373 DE_ASSERT(hash->numElements > 0); \
409 hash->numElements--; \
430 int numElements = hash->numElements; \
[all …]
DdePoolHash.c117 int numElements = deTestHash_getNumElements(hash); in dePoolHash_selfTest() local
121 DE_TEST_ASSERT(deTestInt16Array_getNumElements(keyArray) == numElements); in dePoolHash_selfTest()
124 DE_TEST_ASSERT(deTestIntArray_getNumElements(valueArray) == numElements); in dePoolHash_selfTest()
129 DE_TEST_ASSERT(deTestInt16Array_getNumElements(keyArray) == numElements); in dePoolHash_selfTest()
130 DE_TEST_ASSERT(deTestIntArray_getNumElements(valueArray) == numElements); in dePoolHash_selfTest()
132 for (ndx = 0; ndx < numElements; ndx++) in dePoolHash_selfTest()
DdePoolHashSet.c127 int numElements = deTestHash_getNumElements(hash); in dePoolHashSet_selfTest()
131 DE_TEST_ASSERT(deTestInt16Array_getNumElements(keyArray) == numElements); in dePoolHashSet_selfTest()
134 DE_TEST_ASSERT(deTestIntArray_getNumElements(valueArray) == numElements); in dePoolHashSet_selfTest()
139 DE_TEST_ASSERT(deTestInt16Array_getNumElements(keyArray) == numElements); in dePoolHashSet_selfTest()
140 DE_TEST_ASSERT(deTestIntArray_getNumElements(valueArray) == numElements); in dePoolHashSet_selfTest()
142 for (ndx = 0; ndx < numElements; ndx++) in dePoolHashSet_selfTest()
/external/libchrome/mojo/public/js/lib/
Dvalidator.js509 var numElements = this.message.buffer.getUint32(offset + 4);
514 Math.ceil(numElements / 8) : (elementSize * numElements);
520 numElements != expectedDimensionSizes[currentDimension]) {
533 return this.validateHandleElements(elementsOffset, numElements, nullable);
536 elementsOffset, numElements, nullable);
539 elementsOffset, numElements, nullable);
542 elementsOffset, numElements, nullable);
545 elementsOffset, numElements, nullable);
548 elementsOffset, numElements, internal.Uint8, nullable, [0], 0);
551 elementsOffset, numElements, elementType.cls, nullable);
[all …]
/external/freetype/src/psaux/
Dpsarrst.c96 size_t numElements ) in cf2_arrstack_setNumElements() argument
104 size_t newSize = numElements * arrstack->sizeItem; in cf2_arrstack_setNumElements()
107 if ( numElements > FT_LONG_MAX / arrstack->sizeItem ) in cf2_arrstack_setNumElements()
115 arrstack->allocated = numElements; in cf2_arrstack_setNumElements()
118 if ( arrstack->count > numElements ) in cf2_arrstack_setNumElements()
122 arrstack->count = numElements; in cf2_arrstack_setNumElements()
141 size_t numElements ) in cf2_arrstack_setCount() argument
145 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount()
148 if ( !cf2_arrstack_setNumElements( arrstack, numElements ) ) in cf2_arrstack_setCount()
152 arrstack->count = numElements; in cf2_arrstack_setCount()
/external/guava/guava-testlib/src/com/google/common/collect/testing/features/
DCollectionSize.java70 private final Integer numElements; field in CollectionSize
72 CollectionSize(int numElements) { in CollectionSize() argument
74 this.numElements = numElements; in CollectionSize()
81 this.numElements = null; in CollectionSize()
90 if (numElements == null) { in getNumElements()
94 return numElements; in getNumElements()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
DFixedTableModel.java58 private int numElements; field in FixedTableModel.FixedTableModelIterator
60 protected FixedTableModelIterator(FixedTableModel model, RectF tableRect, int numElements) { in FixedTableModelIterator() argument
63 this.numElements = numElements; in FixedTableModelIterator()
74 return !(lastElement >= numElements || (isColumnFinished() && isRowFinished())); in hasNext()
92 if (lastElement >= numElements) { in next()
/external/deqp/framework/randomshaders/
DrsgVariableValue.cpp48 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() local
49 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue()
57 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() local
61 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue()
76 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue()
89 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue()
213 int numElements = (int)a.getType().getNumElements(); in computeIntersection() local
214 for (int ndx = 0; ndx < numElements; ndx++) in computeIntersection()
219 int numElements = (int)a.getType().getNumElements(); in computeIntersection() local
223 for (int ndx = 0; ndx < numElements; ndx++) in computeIntersection()
[all …]
DrsgVariableType.hpp132 VariableType (Type baseType, int numElements = 0);
133 VariableType (Type baseType, const VariableType& elementType, int numElements);
186 inline VariableType::VariableType (Type baseType, int numElements) in VariableType() argument
190 , m_numElements (numElements) in VariableType()
196 inline VariableType::VariableType (Type baseType, const VariableType& elementType, int numElements) in VariableType() argument
200 , m_numElements (numElements) in VariableType()
/external/guava/guava/src/com/google/common/collect/
DQueues.java260 public static <E> int drain(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, in drain() argument
270 while (added < numElements) { in drain()
273 added += q.drainTo(buffer, numElements - added); in drain()
274 if (added < numElements) { // not enough elements immediately available; will have to poll in drain()
301 int numElements, long timeout, TimeUnit unit) { in drainUninterruptibly() argument
307 while (added < numElements) { in drainUninterruptibly()
310 added += q.drainTo(buffer, numElements - added); in drainUninterruptibly()
311 if (added < numElements) { // not enough elements immediately available; will have to poll in drainUninterruptibly()

12345