Home
last modified time | relevance | path

Searched refs:nelem (Results 1 – 6 of 6) sorted by relevance

/aosp12/hardware/google/graphics/common/libion/test/
H A Dion_test_fixture.cpp211 const size_t nelem = bigger_than_cache / sizeof(unsigned int); in blowCache() local
212 unsigned int *buf1 = new unsigned int[nelem]; in blowCache()
213 unsigned int *buf2 = new unsigned int[nelem]; in blowCache()
218 for (size_t i = 0; i < (nelem / 2); i++) { in blowCache()
220 buf1[nelem - i - 1] = i; in blowCache()
232 const size_t nelem = size / sizeof(unsigned int); in dirtyCache() local
234 for (size_t i = 0; i < (nelem / 2); i++) { in dirtyCache()
236 uip[nelem - i - 1] = 0x6b5a6b5a; in dirtyCache()
/aosp12/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp174 int nelem = sizeof(quadIndices)/sizeof(quadIndices[0]); in Java_com_android_gljni_GLJNILib_step() local
182 glDrawElements(GL_TRIANGLES, nelem, GL_UNSIGNED_SHORT, quadIndices); in Java_com_android_gljni_GLJNILib_step()
/aosp12/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp266 int nelem = sizeof(quadIndices)/sizeof(quadIndices[0]); in render() local
268 glDrawElements(GL_TRIANGLES, nelem*quads, GL_UNSIGNED_SHORT, indices); in render()
/aosp12/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp389 int nelem = sizeof(indices)/sizeof(indices[0]); in render() local
391 glDrawElements(GL_TRIANGLES, nelem, GL_UNSIGNED_SHORT, indices); in render()
/aosp12/packages/modules/DnsResolver/
H A Dgetaddrinfo.cpp1349 int nelem = 0, i; in _rfc6724_sort() local
1354 ++nelem; in _rfc6724_sort()
1358 elems = (struct addrinfo_sort_elem*) malloc(nelem * sizeof(struct addrinfo_sort_elem)); in _rfc6724_sort()
1367 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1381 qsort((void*) elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare); in _rfc6724_sort()
1384 for (i = 0; i < nelem - 1; ++i) { in _rfc6724_sort()
1387 elems[nelem - 1].ai->ai_next = NULL; in _rfc6724_sort()
/aosp12/bionic/libc/dns/net/
H A Dgetaddrinfo.c1848 int nelem = 0, i; in _rfc6724_sort() local
1853 ++nelem; in _rfc6724_sort()
1857 elems = (struct addrinfo_sort_elem *)malloc(nelem * sizeof(struct addrinfo_sort_elem)); in _rfc6724_sort()
1866 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1880 qsort((void *)elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare); in _rfc6724_sort()
1883 for (i = 0; i < nelem - 1; ++i) { in _rfc6724_sort()
1886 elems[nelem - 1].ai->ai_next = NULL; in _rfc6724_sort()