/external/flac/include/share/ |
alloc.h | 86 static inline void *safe_malloc_add_2op_(size_t size1, size_t size2) 88 size2 += size1; 89 if(size2 < size1) 91 return safe_malloc_(size2); 94 static inline void *safe_malloc_add_3op_(size_t size1, size_t size2, size_t size3) 96 size2 += size1; 97 if(size2 < size1) 99 size3 += size2; 100 if(size3 < size2) 105 static inline void *safe_malloc_add_4op_(size_t size1, size_t size2, size_t size3, size_t size4 [all...] |
/external/lzma/C/ |
7zStream.c | 75 size_t size2 = p->size - p->pos;
local 76 if (size2 == 0 && *size > 0)
79 size2 = LookToRead_BUF_SIZE;
80 res = p->realStream->Read(p->realStream, p->buf, &size2);
81 p->size = size2;
83 if (size2 < *size)
84 *size = size2;
93 size_t size2 = p->size - p->pos;
local 94 if (size2 == 0 && *size > 0)
100 size2 = p->size = *size; [all...] |
Bcj2.h | 28 const Byte *buf2, SizeT size2,
|
Bcj2.c | 38 const Byte *buf2, SizeT size2,
114 if (size2 < 4)
117 size2 -= 4;
|
/external/opencv/cvaux/src/ |
_cvaux.h | 54 CV_INLINE bool operator == (CvSize size1, CvSize size2 ); 55 CV_INLINE bool operator == (CvSize size1, CvSize size2 ) 57 return size1.width == size2.width && size1.height == size2.height; 60 CV_INLINE bool operator != (CvSize size1, CvSize size2 ); 61 CV_INLINE bool operator != (CvSize size1, CvSize size2 ) 63 return size1.width != size2.width || size1.height != size2.height;
|
/external/bison/lib/ |
xsize.h | 60 xsum (size_t size1, size_t size2) 62 size_t sum = size1 + size2; 71 xsum3 (size_t size1, size_t size2, size_t size3) 73 return xsum (xsum (size1, size2), size3); 81 xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) 83 return xsum (xsum (xsum (size1, size2), size3), size4); 91 xmax (size_t size1, size_t size2) 95 return (size1 >= size2 ? size1 : size2);
|
/external/e2fsprogs/intl/ |
xsize.h | 57 xsum (size_t size1, size_t size2) 59 size_t sum = size1 + size2; 68 xsum3 (size_t size1, size_t size2, size_t size3) 70 return xsum (xsum (size1, size2), size3); 78 xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) 80 return xsum (xsum (xsum (size1, size2), size3), size4); 88 xmax (size_t size1, size_t size2) 92 return (size1 >= size2 ? size1 : size2);
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
SizeAreaComparator.java | 38 public int compare(Camera.Size size, Camera.Size size2) { 40 checkNotNull(size2, "size2 must not be null"); 42 if (size.equals(size2)) { 47 long width2 = size2.width; 49 long area2 = width2 * size2.height;
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
SizeAreaComparator.java | 37 public int compare(Size size, Size size2) { 39 checkNotNull(size2, "size2 must not be null"); 41 if (size.equals(size2)) { 46 long width2 = size2.getWidth(); 48 long area2 = width2 * size2.getHeight();
|
/ndk/tests/device/test-gnustl-full/unit/ |
collate_facets_test.cpp | 25 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; local 27 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); 28 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); 31 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); 32 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); 45 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; local 47 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); 48 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); 51 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); 52 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ) 92 const size_t size2 = sizeof(str2) \/ sizeof(str2[0]) - 1; local 219 const size_t size2 = sizeof(str2) \/ sizeof(str2[0]) - 1; local [all...] |
/ndk/tests/device/test-stlport/unit/ |
collate_facets_test.cpp | 25 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; local 27 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); 28 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); 31 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); 32 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); 45 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; local 47 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); 48 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); 51 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); 52 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ) 92 const size_t size2 = sizeof(str2) \/ sizeof(str2[0]) - 1; local 219 const size_t size2 = sizeof(str2) \/ sizeof(str2[0]) - 1; local [all...] |
/external/eigen/bench/ |
benchVecAdd.cpp | 24 int size2 = size * size; local 25 Scalar* a = internal::aligned_new<Scalar>(size2); 26 Scalar* b = internal::aligned_new<Scalar>(size2+4)+1; 27 Scalar* c = internal::aligned_new<Scalar>(size2); 40 benchVec(a, b, c, size2); 43 std::cout << timer.value() << "s " << (double(size2*REPEAT)/timer.value())/(1024.*1024.*1024.) << " GFlops\n"; 47 if (size2%innersize==0) 49 int outersize = size2/innersize; 60 std::cout << innersize << " x " << outersize << " " << timer.value() << "s " << (double(size2*REPEAT)/timer.value())/(1024.*1024.*1024.) << " GFlops\n"; 64 VectorXf va = Map<VectorXf>(a, size2); [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
mandelbulb.rs | 54 int size2 = size / 2;
55 if (z < size2) {
56 return 256-4*(size2-z+4)*hypot((float)x-size2,(float)y-size2) / size2 ;
59 c = ((c - size2) / (size2 * .9f));
|
/external/webrtc/webrtc/modules/audio_device/mac/portaudio/ |
pa_ringbuffer.c | 104 ** If the region is contiguous, size2 will be zero. 105 ** If non-contiguous, size2 will be the size of second region. 151 ** If the region is contiguous, size2 will be zero. 152 ** If non-contiguous, size2 will be the size of second region. 199 PaRingBufferSize size1, size2, numWritten; local 201 numWritten = PaUtil_GetRingBufferWriteRegions( rbuf, elementCount, &data1, &size1, &data2, &size2 ); 202 if( size2 > 0 ) 207 memcpy( data2, data, size2*rbuf->elementSizeBytes ); 222 PaRingBufferSize size1, size2, numRead; local 224 numRead = PaUtil_GetRingBufferReadRegions( rbuf, elementCount, &data1, &size1, &data2, &size2 ); [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
Camera2PreviewSizeSelector.java | 59 public int compare(Size size1, Size size2) { 61 int area2 = size2.getWidth() * size2.getHeight();
|
/external/llvm/lib/Fuzzer/ |
FuzzerCrossOver.cpp | 20 const uint8_t *Data2, size_t Size2, 22 assert(Size1 || Size2); 31 while (OutPos < MaxOutSize && (Pos1 < Size1 || Pos2 < Size2)) { 44 InSize = CurrentlyUsingFirstData ? Size2 : Size1;
|
/external/eigen/test/eigen2/ |
gsl_helper.h | 38 Matrix a = createMatrix(m->size1, m->size2); 48 Matrix a = createMatrix(m->size1, m->size2); 49 Matrix b = createMatrix(_b->size1, _b->size2); 74 Matrix a = createMatrix(m->size1, m->size2); 84 Matrix a = createMatrix(m->size1, m->size2); 85 Matrix b = createMatrix(_b->size1, _b->size2); 109 res.resize(int(m->size1), int(m->size2)); 147 res.resize(int(m->size1), int(m->size2));
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/extras/LIRC/ |
OISLIRCRingBuffer.h | 141 int size1 = 0, size2 = 0, numWritten; local 144 numWritten = GetWriteRegions( numEntries, data1Ptr, size1, data2Ptr, size2 ); 146 if( size2 > 0 ) 151 memcpy( &buffer[data2Ptr], &data[size1], sizeof(LIRCEvent) * size2 ); 152 //Array.Copy( data, offsetPtr + size1, buffer, data2Ptr, size2 ); 170 int size1 = 0, size2 = 0, numRead, data1Ptr = 0, data2Ptr = 0; local 172 numRead = GetReadRegions( numEntries, data1Ptr, size1, data2Ptr, size2 ); 174 if( size2 > 0 ) 178 memcpy( &data[size1], &buffer[data2Ptr], sizeof(LIRCEvent) * size2 ); 179 //Array.Copy( buffer, data2Ptr, data, size1, size2 ); [all...] |
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/win32/extras/WiiMote/ |
OISWiiMoteRingBuffer.h | 185 int size1 = 0, size2 = 0, numWritten; local 188 numWritten = GetWriteRegions( numEntries, data1Ptr, size1, data2Ptr, size2 ); 190 if( size2 > 0 ) 195 memcpy( &buffer[data2Ptr], &data[size1], sizeof(WiiMoteEvent) * size2 ); 196 //Array.Copy( data, offsetPtr + size1, buffer, data2Ptr, size2 ); 214 int size1 = 0, size2 = 0, numRead, data1Ptr = 0, data2Ptr = 0; local 216 numRead = GetReadRegions( numEntries, data1Ptr, size1, data2Ptr, size2 ); 218 if( size2 > 0 ) 222 memcpy( &data[size1], &buffer[data2Ptr], sizeof(WiiMoteEvent) * size2 ); 223 //Array.Copy( buffer, data2Ptr, data, size1, size2 ); [all...] |
/external/libcxx/test/std/utilities/intseq/intseq.general/ |
integer_seq.pass.cpp | 36 using size2 = std::index_sequence_for<int, size_t>; // generates size_t: 0,1 50 static_assert ( std::is_same<size2::value_type, size_t>::value, "size2 type wrong" ); 51 static_assert ( size2::size () == 2, "size2 size wrong" ); 74 auto t2 = extract ( tup, size2 ()); 75 static_assert ( std::tuple_size<decltype(t2)>::value == size2::size (), "t2 size wrong");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/intseq/intseq.general/ |
integer_seq.pass.cpp | 36 using size2 = std::index_sequence_for<int, size_t>; // generates size_t: 0,1 50 static_assert ( std::is_same<size2::value_type, size_t>::value, "size2 type wrong" ); 51 static_assert ( size2::size () == 2, "size2 size wrong" ); 74 auto t2 = extract ( tup, size2 ()); 75 static_assert ( std::tuple_size<decltype(t2)>::value == size2::size (), "t2 size wrong");
|
/bionic/tests/ |
sched_test.cpp | 210 size_t size2 = CPU_ALLOC_SIZE(set_size2); local 217 CPU_ZERO_S(size2, set2); 221 CPU_SET_S(0, size2, set2); 248 size_t size2 = CPU_ALLOC_SIZE(set_size2); local 254 CPU_ZERO_S(size2, set2); 259 CPU_SET_S(0, size2, set2);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultimapSizeTester.java | 52 int size2 = 0; local 54 size2 += entry2.getValue().size(); 56 assertEquals(expectedSize, size2);
|
/external/valgrind/drd/tests/ |
custom_alloc.c | 30 int size2 = size + RZ*2; local 33 if (hp + size2 > hp_lim) { 39 hp += size2;
|
/external/valgrind/massif/tests/ |
custom_alloc.c | 30 int size2 = size + RZ*2; local 33 if (hp + size2 > hp_lim) { 39 hp += size2;
|