Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 494) sorted by relevance

12345678910>>...20

/external/clang/test/SemaCXX/
Dtype-traits.cpp155 { int arr[T(__is_pod(int))]; } in is_pod() local
156 { int arr[T(__is_pod(Enum))]; } in is_pod() local
157 { int arr[T(__is_pod(POD))]; } in is_pod() local
158 { int arr[T(__is_pod(Int))]; } in is_pod() local
159 { int arr[T(__is_pod(IntAr))]; } in is_pod() local
160 { int arr[T(__is_pod(Statics))]; } in is_pod() local
161 { int arr[T(__is_pod(Empty))]; } in is_pod() local
162 { int arr[T(__is_pod(EmptyUnion))]; } in is_pod() local
163 { int arr[T(__is_pod(Union))]; } in is_pod() local
164 { int arr[T(__is_pod(HasFunc))]; } in is_pod() local
[all …]
Darray-bounds.cpp77 char arr[I]; // expected-note 3 {{declared here}} member
81 …s.arr[4] = 0; // expected-warning 2 {{array index 4 is past the end of the array (which contains 3… in f()
82 …s.arr[I] = 0; // expected-warning {{array index 5 is past the end of the array (which contains 3 e… in f()
90 #define ARR_IN_MACRO(flag, arr, idx) flag ? arr[idx] : 1 argument
93 int arr[SIZE]; // expected-note {{array 'arr' declared here}} in test_no_warn_macro_unreachable() local
94 return ARR_IN_MACRO(0, arr, SIZE) + // no-warning in test_no_warn_macro_unreachable()
95 …ARR_IN_MACRO(1, arr, SIZE); // expected-warning{{array index 10 is past the end of the array (whic… in test_no_warn_macro_unreachable()
108 int arr[3 + (extendArray ? 1 : 0)]; in pr9284() local
111 arr[3] = 42; // no-warning in pr9284()
116 int arr[3 + (extendArray ? 1 : 0)]; // expected-note {{array 'arr' declared here}} in pr9284b() local
[all …]
Dconstant-expression-cxx1y.cpp9 int arr[10]; member
11 constexpr int &get(int n) { return arr[n]; } in get()
12 constexpr const int &get(int n) const { return arr[n]; } in get()
105 uchar arr[4] = { uchar(x >> 24), uchar(x >> 16), uchar(x >> 8), uchar(x) }; in htonl() local
106 …return *reinterpret_cast<int*>(arr); // expected-note {{reinterpret_cast is not allowed in a const… in htonl()
114 uchar arr[4] = { uchar(x >> 24), uchar(x >> 16), uchar(x >> 8), uchar(x) }; in maybe_htonl() local
115 …return *reinterpret_cast<int*>(arr); // expected-note {{reinterpret_cast is not allowed in a const… in maybe_htonl()
192 int arr[1234] = { 1, 2, 3, 4 }; in do_stuff() local
193arr[k1] = 5; // expected-note {{past-the-end}} expected-note {{cannot refer to element 1235}} expe… in do_stuff()
194 return arr[k2]; in do_stuff()
[all …]
Dwarn-empty-body.cpp37 int arr[3] = { 1, 2, 3 }; in test1() local
38 …for (int j : arr); // expected-warning{{range-based for loop has empty body}} expected-note{{put t… in test1()
42arr); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon … in test1()
102 int arr[3] = { 1, 2, 3 }; in test2() local
103 for (int j : arr) // no-warning in test2()
135 int arr[3] = { 1, 2, 3 }; in test3() local
136 for (int j : arr) EMPTY(j); // no-warning in test3()
139 arr) EMPTY(j); // no-warning in test3()
216 int arr[3] = { 1, 2, 3 }; in test6() local
217 for (int j : arr) // no-warning in test6()
[all …]
/external/deqp/framework/delibs/decpp/
DdePoolArray.cpp35 PoolArray<int> arr (&pool); in intArrayTest() local
45 arr.pushBack(i); in intArrayTest()
49 DE_TEST_ASSERT(arr.size() == 5000); in intArrayTest()
53 DE_TEST_ASSERT(arr[i] == i); in intArrayTest()
60 DE_TEST_ASSERT(arr.popBack() == (4999 - i)); in intArrayTest()
64 DE_TEST_ASSERT(arr.size() == 4000); in intArrayTest()
68 DE_TEST_ASSERT(arr[i] == i); in intArrayTest()
73 arr.resize(1000); in intArrayTest()
77 arr.pushBack(i); in intArrayTest()
81 DE_TEST_ASSERT(arr.size() == 5000); in intArrayTest()
[all …]
/external/deqp/framework/delibs/depool/
DdePoolArray.c46 dePoolArray* arr = DE_POOL_NEW(pool, dePoolArray); in dePoolArray_create() local
47 if (!arr) in dePoolArray_create()
51 memset(arr, 0, sizeof(dePoolArray)); in dePoolArray_create()
52 arr->pool = pool; in dePoolArray_create()
53 arr->elementSize = elementSize; in dePoolArray_create()
55 return arr; in dePoolArray_create()
65 deBool dePoolArray_reserve (dePoolArray* arr, int size) in dePoolArray_reserve() argument
67 if (size >= arr->capacity) in dePoolArray_reserve()
75 if (arr->pageTableCapacity < reqPageTableCapacity) in dePoolArray_reserve()
77 int newPageTableCapacity = deMax32(2*arr->pageTableCapacity, reqPageTableCapacity); in dePoolArray_reserve()
[all …]
DdePoolArray.h53 deBool dePoolArray_reserve (dePoolArray* arr, int capacity);
54 deBool dePoolArray_setSize (dePoolArray* arr, int size);
107 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* arr) DE_UNUSED_FUNCTION; \
108 DE_INLINE deBool TYPENAME##_reserve (TYPENAME* arr, int capacity) DE_UNUSED_FUNCTION; \
109 DE_INLINE deBool TYPENAME##_setSize (TYPENAME* arr, int size) DE_UNUSED_FUNCTION; \
110 DE_INLINE void TYPENAME##_reset (TYPENAME* arr) DE_UNUSED_FUNCTION; \
111 DE_INLINE VALUETYPE TYPENAME##_get (const TYPENAME* arr, int ndx) DE_UNUSED_FUNCTION; \
112 DE_INLINE void TYPENAME##_set (TYPENAME* arr, int ndx, VALUETYPE elem) DE_UNUSED_FUNCTION; \
113 DE_INLINE deBool TYPENAME##_pushBack (TYPENAME* arr, VALUETYPE elem) DE_UNUSED_FUNCTION; \
114 DE_INLINE VALUETYPE TYPENAME##_popBack (TYPENAME* arr) DE_UNUSED_FUNCTION; \
[all …]
/external/boringssl/src/crypto/asn1/
Dcharmap.pl60 my ($i, @arr);
76 $arr[$i] = 0;
78 $arr[$i] |= $ESC_CTRL;
85 $arr[$i] |= $PSTRING_CHAR;
93 $arr[ord(" ")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC | $RFC2253_LAST_ESC;
94 $arr[ord("#")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC;
96 $arr[ord(",")] |= $NOESC_QUOTE | $RFC2253_ESC;
97 $arr[ord("+")] |= $NOESC_QUOTE | $RFC2253_ESC;
98 $arr[ord("\"")] |= $RFC2253_ESC;
99 $arr[ord("\\")] |= $RFC2253_ESC;
[all …]
/external/valgrind/memcheck/tests/
Dsh-mem-random.c70 void check(U1* arr, int n, char* who) in check() argument
76 (void)VALGRIND_GET_VBITS(arr, shadow, n); in check()
78 arr_i = make_defined(arr[i]); in check()
82 who, i, shadow[i], arr[i]); in check()
109 void do_test_at ( U1* arr ) in do_test_at() argument
116 if (0) printf("-------- arr = %p\n", arr); in do_test_at()
120 arr[i] = (U1)build(1, randomU1()); in do_test_at()
123 check(arr, N_BYTES, "after initialisation"); in do_test_at()
135 *(U1*)(arr+dst) = *(U1*)(arr+src); in do_test_at()
142 *(U2*)(arr+dst) = *(U2*)(arr+src); in do_test_at()
[all …]
Dorigin6-fp.c35 double** do3x3smooth ( double** arr, int nArr ) in do3x3smooth() argument
44 double s = arr[i-1][j-1] + arr[i-1][j ] + arr[i-1][j+1] in do3x3smooth()
45 + arr[i ][j-1] + arr[i ][j ] + arr[i ][j+1] in do3x3smooth()
46 + arr[i+1][j-1] + arr[i+1][j ] + arr[i+1][j+1]; in do3x3smooth()
53 double sum ( double** arr, int nArr ) in sum() argument
60 s += arr[i][j]; in sum()
66 void setup_arr ( /*OUT*/double** arr, int nArr ) in setup_arr() argument
72 arr[i][j] = (double)(i * j); in setup_arr()
74 unsigned char* p = (unsigned char*)&arr[i][j]; in setup_arr()
85 double r, **arr, **arr2, **arr3; in main() local
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderStructTests.cpp1406 tcu::Vec2 arr[2]; in init()
1409 arr[0] = constCoords.swizzle(0,1); in init()
1410 arr[1] = constCoords.swizzle(2,3); in init()
1412 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
1413 arr[0] = constCoords.swizzle(2,3); in init()
1414 arr[1] = constCoords.swizzle(0,1); in init()
1416 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
1417 arr[0] = constCoords.swizzle(0,2); in init()
1418 arr[1] = constCoords.swizzle(1,3); in init()
1420 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
[all …]
/external/opencv/cxcore/src/
Dcxarray.cpp98 CvMat* arr = 0; in cvCreateMat() local
104 CV_CALL( arr = cvCreateMatHeader( height, width, type )); in cvCreateMat()
105 CV_CALL( cvCreateData( arr )); in cvCreateMat()
110 cvReleaseMat( &arr ); in cvCreateMat()
112 return arr; in cvCreateMat()
116 static void icvCheckHuge( CvMat* arr ) in icvCheckHuge() argument
118 if( (int64)arr->step*arr->rows > INT_MAX ) in icvCheckHuge()
119 arr->type &= ~CV_MAT_CONT_FLAG; in icvCheckHuge()
126 CvMat* arr = 0; in cvCreateMatHeader() local
142 CV_CALL( arr = (CvMat*)cvAlloc( sizeof(*arr))); in cvCreateMatHeader()
[all …]
Dcxrand.cpp70 icvRandBits_##flavor##_C1R( arrtype* arr, int step, CvSize size, \
75 step /= sizeof(arr[0]); \
77 for( ; size.height--; arr += step ) \
92 arr[i] = cast_macro((int)t0); \
93 arr[i+1] = cast_macro((int)t1); \
99 arr[i+2] = cast_macro((int)t0); \
100 arr[i+3] = cast_macro((int)t1); \
119 arr[i] = cast_macro((int)t0); \
120 arr[i+1] = cast_macro((int)t1); \
124 arr[i+2] = cast_macro((int)t0); \
[all …]
/external/deqp/modules/gles2/functional/
Des2fShaderStructTests.cpp1432 tcu::Vec2 arr[2]; in init()
1435 arr[0] = constCoords.swizzle(0,1); in init()
1436 arr[1] = constCoords.swizzle(2,3); in init()
1438 setUniform(gl, programID, "s[0].b[0].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
1439 arr[0] = constCoords.swizzle(2,3); in init()
1440 arr[1] = constCoords.swizzle(0,1); in init()
1442 setUniform(gl, programID, "s[0].b[1].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
1443 arr[0] = constCoords.swizzle(0,2); in init()
1444 arr[1] = constCoords.swizzle(1,3); in init()
1446 setUniform(gl, programID, "s[0].b[2].b", &arr[0], DE_LENGTH_OF_ARRAY(arr)); in init()
[all …]
/external/smali/util/src/main/java/org/jf/util/
DArraySortedSet.java41 @Nonnull private final Object[] arr; field in ArraySortedSet
43 private ArraySortedSet(@Nonnull Comparator<? super T> comparator, @Nonnull T[] arr) { in ArraySortedSet() argument
46 this.arr = arr; in ArraySortedSet()
49 …blic static <T> ArraySortedSet<T> of(@Nonnull Comparator<? super T> comparator, @Nonnull T[] arr) { in of() argument
50 return new ArraySortedSet<T>(comparator, arr); in of()
55 return arr.length; in size()
60 return arr.length > 0; in isEmpty()
66 return Arrays.binarySearch((T[])arr, (T)o, comparator) >= 0; in contains()
72 return Iterators.forArray((T[])arr); in iterator()
77 return arr.clone(); in toArray()
[all …]
DStringWrapper.java83 private static String[] addString(@Nonnull String[] arr, String str, int index) { in addString() argument
84 if (index >= arr.length) { in addString()
85 arr = enlargeArray(arr, (int)(Math.ceil((arr.length + 1) * 1.5))); in addString()
88 arr[index] = str; in addString()
89 return arr; in addString()
92 private static String[] addString(@Nonnull String[] arr, String str, int index, int newLength) { in addString() argument
93 if (index >= arr.length) { in addString()
94 arr = enlargeArray(arr, newLength); in addString()
97 arr[index] = str; in addString()
98 return arr; in addString()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-crbug-381534.js12 …var arr = new Array(+0, true, 0, -0, false, undefined, null, "0", obj, v1, -(4/3), -1.333333333333…
13 assertEquals(10, arr.lastIndexOf(-(4/3)));
14 assertEquals(9, arr.indexOf(-(4/3)));
16 assertEquals(10, arr.lastIndexOf(v));
17 assertEquals(9, arr.indexOf(v));
19 assertEquals(8, arr.lastIndexOf(obj));
20 assertEquals(8, arr.indexOf(obj));
24 var arr = new Array({}, x-1.1, x-2, x-3.1);
25 assertEquals(index, arr.indexOf(0));
26 assertEquals(index, arr.lastIndexOf(0));
[all …]
/external/v8/test/webkit/
Darray-splice-expected.txt29 PASS arr is ['a','b','c','d']
30 PASS arr.splice(2) is ['c','d']
31 PASS arr is ['a','b']
32 PASS arr.splice(0) is ['a','b']
33 PASS arr is []
34 PASS arr.splice() is []
35 PASS arr is ['a','b','c','d']
36 PASS arr.splice(undefined) is ['a','b','c','d']
37 PASS arr is []
38 PASS arr.splice(null) is ['a','b','c','d']
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DDexDataWriterTest.java87 byte[] arr = new byte[257]; in testWriteByte()
89 arr[i] = (byte)i; in testWriteByte()
92 arr[256] = (byte)0x80; in testWriteByte()
95 expectData(arr); in testWriteByte()
100 byte[] arr = new byte[345]; in testWriteByteArray()
101 random.nextBytes(arr); in testWriteByteArray()
102 writer.write(arr); in testWriteByteArray()
104 expectData(arr); in testWriteByteArray()
109 byte[] arr = new byte[345]; in testWriteByteArrayWithLengthAndOffset()
110 random.nextBytes(arr); in testWriteByteArrayWithLengthAndOffset()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/util/
DFixedSizeList.java27 private Object[] arr; field in FixedSizeList
38 arr = new Object[size]; in FixedSizeList()
59 return Arrays.equals(arr, list.arr); in equals()
65 return Arrays.hashCode(arr); in hashCode()
124 return arr.length; in size()
133 int sz = arr.length; in shrinkToFit()
137 if (arr[i] != null) { in shrinkToFit()
152 Object one = arr[i]; in shrinkToFit()
159 arr = newa; in shrinkToFit()
177 Object result = arr[n]; in get0()
[all …]
/external/deqp/data/gles2/shaders/
Dfunctions.test1527 float arr[4];
1529 out0 = func(arr) + func(arr2).x;
1672 float arr[4];
1673 arr[0] = in0.x;
1674 arr[1] = in0.y;
1675 arr[2] = in0.z;
1676 arr[3] = in0.w;
1677 float f = func(arr);
1678 out0 = f * vec4(arr[0], arr[1], arr[2], arr[3]);
1703 float arr[4];
[all …]
/external/libvncserver/webclients/novnc/include/
Drfb.js590 var arr;
594 arr = keyEvent(keysym, down);
595 arr = arr.concat(fbUpdateRequests());
596 ws.send(arr);
1282 getTightCLength = function (arr) { argument
1284 data += arr[0] & 0x7f;
1285 if (arr[0] & 0x80) {
1287 data += (arr[1] & 0x7f) << 7;
1288 if (arr[1] & 0x80) {
1290 data += arr[2] << 14;
[all …]
/external/clang/test/CodeGen/
Dms-inline-asm.c306 int arr[2] = {0, 0};
308 __asm mov olen, LENGTH arr
310 __asm mov osize, SIZE arr
312 __asm mov otype, TYPE arr
387 int arr[4];
389 __asm { mov eax, 4[arr] }
391 __asm { mov eax, 4[arr + 4] }
393 __asm { mov eax, 8[arr + 4 + 32*2 - 4] }
395 __asm { mov eax, 12[4 + arr] }
397 __asm { mov eax, 4[4 + arr + 4] }
[all …]
/external/valgrind/coregrind/
Dm_xarray.c46 void* arr; /* pointer to elements */ member
77 xa->arr = NULL; in VG_()
96 if (nyu->arr) { in VG_()
104 nyu->arr = nyu->alloc_fn( nyu->cc, nyu->totsizeE * nyu->elemSzB ); in VG_()
105 VG_(memcpy)( nyu->arr, xa->arr, nyu->totsizeE * nyu->elemSzB ); in VG_()
115 if (xa->arr) in VG_()
116 xa->free_fn(xa->arr); in VG_()
135 return ((char*)xa->arr) + n * xa->elemSzB; in VG_()
151 vg_assert(!xa->arr); in VG_()
152 xa->arr = xa->alloc_fn(xa->cc, n * xa->elemSzB); in VG_()
[all …]
/external/valgrind/memcheck/tests/x86/
Dpushfw_x86.c6 int arr[3]; variable
17 : /*out*/ : /*in*/ "a"(&arr) : /*trash*/ "memory","cc" in main()
20 printf("%x %x %x\n", arr[0]-arr[0], arr[0]-arr[1], arr[0]-arr[2]); in main()

12345678910>>...20