Home
last modified time | relevance | path

Searched refs:size2 (Results 1 – 25 of 96) sorted by relevance

1234

/external/flac/include/share/
Dalloc.h86 static inline void *safe_malloc_add_2op_(size_t size1, size_t size2) in safe_malloc_add_2op_() argument
88 size2 += size1; in safe_malloc_add_2op_()
89 if(size2 < size1) in safe_malloc_add_2op_()
91 return safe_malloc_(size2); in safe_malloc_add_2op_()
94 static inline void *safe_malloc_add_3op_(size_t size1, size_t size2, size_t size3) in safe_malloc_add_3op_() argument
96 size2 += size1; in safe_malloc_add_3op_()
97 if(size2 < size1) in safe_malloc_add_3op_()
99 size3 += size2; in safe_malloc_add_3op_()
100 if(size3 < size2) in safe_malloc_add_3op_()
105 static inline void *safe_malloc_add_4op_(size_t size1, size_t size2, size_t size3, size_t size4) in safe_malloc_add_4op_() argument
[all …]
/external/libcups/cups/
Dtestpwg.c416 *size2; /* Size from saved */ in test_ppd_cache() local
455 for (i = pc->num_sizes, size = pc->sizes, size2 = pc2->sizes; in test_ppd_cache()
457 i --, size ++, size2 ++) in test_ppd_cache()
459 if (strcmp(size2->map.pwg, size->map.pwg) || in test_ppd_cache()
460 strcmp(size2->map.ppd, size->map.ppd) || in test_ppd_cache()
461 size2->width != size->width || in test_ppd_cache()
462 size2->length != size->length || in test_ppd_cache()
463 size2->left != size->left || in test_ppd_cache()
464 size2->bottom != size->bottom || in test_ppd_cache()
465 size2->right != size->right || in test_ppd_cache()
[all …]
/external/e2fsprogs/intl/
Dxsize.h57 xsum (size_t size1, size_t size2) in xsum() argument
59 size_t sum = size1 + size2; in xsum()
68 xsum3 (size_t size1, size_t size2, size_t size3) in xsum3() argument
70 return xsum (xsum (size1, size2), size3); in xsum3()
78 xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) in xsum4() argument
80 return xsum (xsum (xsum (size1, size2), size3), size4); in xsum4()
88 xmax (size_t size1, size_t size2) in xmax() argument
92 return (size1 >= size2 ? size1 : size2); in xmax()
/external/eigen/bench/
DbenchVecAdd.cpp24 int size2 = size * size; in main() local
25 Scalar* a = internal::aligned_new<Scalar>(size2); in main()
26 Scalar* b = internal::aligned_new<Scalar>(size2+4)+1; in main()
27 Scalar* c = internal::aligned_new<Scalar>(size2); in main()
40 benchVec(a, b, c, size2); in main()
43 …std::cout << timer.value() << "s " << (double(size2*REPEAT)/timer.value())/(1024.*1024.*1024.) <<… in main()
47 if (size2%innersize==0) in main()
49 int outersize = size2/innersize; in main()
60 …rsize << " x " << outersize << " " << timer.value() << "s " << (double(size2*REPEAT)/timer.valu… in main()
64 VectorXf va = Map<VectorXf>(a, size2); in main()
[all …]
/external/lzma/C/
D7zStream.c81 size_t size2 = p->size - p->pos; in LookToRead2_Look_Lookahead() local
82 if (size2 == 0 && *size != 0) in LookToRead2_Look_Lookahead()
86 size2 = p->bufSize; in LookToRead2_Look_Lookahead()
87 res = ISeekInStream_Read(p->realStream, p->buf, &size2); in LookToRead2_Look_Lookahead()
88 p->size = size2; in LookToRead2_Look_Lookahead()
90 if (*size > size2) in LookToRead2_Look_Lookahead()
91 *size = size2; in LookToRead2_Look_Lookahead()
100 size_t size2 = p->size - p->pos; in LookToRead2_Look_Exact() local
101 if (size2 == 0 && *size != 0) in LookToRead2_Look_Exact()
108 size2 = p->size = *size; in LookToRead2_Look_Exact()
[all …]
DLzma2Enc.c59 size_t size2 = *size; in LimitedSeqInStream_Read() local
65 if (size2 > rem) in LimitedSeqInStream_Read()
66 size2 = (size_t)rem; in LimitedSeqInStream_Read()
68 if (size2 != 0) in LimitedSeqInStream_Read()
70 res = ISeqInStream_Read(p->realStream, data, &size2); in LimitedSeqInStream_Read()
71 p->finished = (size2 == 0 ? 1 : 0); in LimitedSeqInStream_Read()
72 p->processed += size2; in LimitedSeqInStream_Read()
74 *size = size2; in LimitedSeqInStream_Read()
DAlloc.c212 size_t size2; in BigAlloc() local
214 size2 = (size + ps) & ~ps; in BigAlloc()
215 if (size2 >= size) in BigAlloc()
217 void *res = VirtualAlloc(NULL, size2, MEM_COMMIT | MEM_LARGE_PAGES, PAGE_READWRITE); in BigAlloc()
/external/proguard/src/proguard/util/
DArrayUtil.java258 byte[] array2, int size2) in compare() argument
260 int minSize = Math.min(size1, size2); in compare()
274 return size1 < size2 ? -1 : in compare()
275 size1 == size2 ? 0 : in compare()
292 short[] array2, int size2) in compare() argument
294 int minSize = Math.min(size1, size2); in compare()
308 return size1 < size2 ? -1 : in compare()
309 size1 == size2 ? 0 : in compare()
326 int[] array2, int size2) in compare() argument
328 int minSize = Math.min(size1, size2); in compare()
[all …]
/external/webrtc/webrtc/modules/audio_device/mac/portaudio/
Dpa_ringbuffer.c199 PaRingBufferSize size1, size2, numWritten; in PaUtil_WriteRingBuffer() local
201 …umWritten = PaUtil_GetRingBufferWriteRegions( rbuf, elementCount, &data1, &size1, &data2, &size2 ); in PaUtil_WriteRingBuffer()
202 if( size2 > 0 ) in PaUtil_WriteRingBuffer()
207 memcpy( data2, data, size2*rbuf->elementSizeBytes ); in PaUtil_WriteRingBuffer()
222 PaRingBufferSize size1, size2, numRead; in PaUtil_ReadRingBuffer() local
224 numRead = PaUtil_GetRingBufferReadRegions( rbuf, elementCount, &data1, &size1, &data2, &size2 ); in PaUtil_ReadRingBuffer()
225 if( size2 > 0 ) in PaUtil_ReadRingBuffer()
229 memcpy( data, data2, size2*rbuf->elementSizeBytes ); in PaUtil_ReadRingBuffer()
/external/swiftshader/third_party/subzero/crosstest/
Dtest_stacksave.c59 uint32_t size2 = size - j; in test_two_vlas_in_loops() local
61 uint32_t mid2 = size2 / 2; in test_two_vlas_in_loops()
62 uint32_t vla2[size2]; in test_two_vlas_in_loops()
63 for (uint32_t k = start2; k < size2; ++k) { in test_two_vlas_in_loops()
67 vla1[j] = (vla2[start2] << 2) + (vla2[mid2] << 1) + vla2[size2 - 1]; in test_two_vlas_in_loops()
/external/libcxx/test/std/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp31 using size2 = std::index_sequence_for<int, size_t>; // generates size_t: 0,1 in main() typedef
45 static_assert ( std::is_same<size2::value_type, size_t>::value, "size2 type wrong" ); in main()
46 static_assert ( size2::size () == 2, "size2 size wrong" ); in main()
69 auto t2 = extract ( tup, size2 ()); in main()
70 static_assert ( std::tuple_size<decltype(t2)>::value == size2::size (), "t2 size wrong"); in main()
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_crypter_test.cc85 size_t size1 = data_size, size2 = data_size; in alts_crypter_test_multiple_random_seal_unseal() local
91 client_seal, data_buffer2, protected_data_size, size2, &size2, nullptr); in alts_crypter_test_multiple_random_seal_unseal()
93 GPR_ASSERT(size2 == protected_data_size); in alts_crypter_test_multiple_random_seal_unseal()
100 server_unseal, data_buffer2, protected_data_size, size2, &size2, nullptr); in alts_crypter_test_multiple_random_seal_unseal()
103 GPR_ASSERT(size2 == data_size); in alts_crypter_test_multiple_random_seal_unseal()
111 server_seal, data_buffer2, protected_data_size, size2, &size2, nullptr); in alts_crypter_test_multiple_random_seal_unseal()
113 GPR_ASSERT(size2 == protected_data_size); in alts_crypter_test_multiple_random_seal_unseal()
120 client_unseal, data_buffer2, protected_data_size, size2, &size2, nullptr); in alts_crypter_test_multiple_random_seal_unseal()
123 GPR_ASSERT(size2 == data_size); in alts_crypter_test_multiple_random_seal_unseal()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D3-1.c48 size_t size2; in main() local
55 size2 = page_size + 1; in main()
109 mmap(pa, size2, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd2, in main()
131 munmap(pa2, size2); in main()
/external/libprotobuf-mutator/src/libfuzzer/
Dlibfuzzer_macro.cc131 const uint8_t* data2, size_t size2, uint8_t* out, in CrossOverTextMessages() argument
136 TextInputReader input2(data2, size2); in CrossOverTextMessages()
149 const uint8_t* data2, size_t size2, uint8_t* out, in CrossOverBinaryMessages() argument
154 BinaryInputReader input2(data2, size2); in CrossOverBinaryMessages()
169 const uint8_t* data2, size_t size2, uint8_t* out, in CustomProtoCrossOver() argument
174 return cross(data1, size1, data2, size2, out, max_out_size, seed, input1, in CustomProtoCrossOver()
Dlibfuzzer_macro.h47 const uint8_t* data1, size_t size1, const uint8_t* data2, size_t size2, \
52 return CustomProtoCrossOver(use_binary, data1, size1, data2, size2, out, \
81 const uint8_t* data2, size_t size2, uint8_t* out,
/external/dtc/tests/
Ddtbs_equal_ordered.c59 uint64_t addr1, size1, addr2, size2; in compare_mem_rsv() local
66 CHECK(fdt_get_mem_rsv(fdt2, i, &addr2, &size2)); in compare_mem_rsv()
68 if ((addr1 != addr2) || (size1 != size2)) in compare_mem_rsv()
74 (unsigned long long)size2); in compare_mem_rsv()
Ddtbs_equal_unordered.c78 uint64_t addr1, size1, addr2, size2; in compare_mem_rsv() local
91 CHECK(fdt_get_mem_rsv(fdt2, i, &addr2, &size2)); in compare_mem_rsv()
93 if ((addr1 != addr2) || (size1 != size2)) in compare_mem_rsv()
99 (unsigned long long)size2); in compare_mem_rsv()
/external/flac/libFLAC/
Dmemory.c211 void *safe_malloc_mul_2op_p(size_t size1, size_t size2) in safe_malloc_mul_2op_p() argument
213 if(!size1 || !size2) in safe_malloc_mul_2op_p()
215 if(size1 > SIZE_MAX / size2) in safe_malloc_mul_2op_p()
217 return malloc(size1*size2); in safe_malloc_mul_2op_p()
/external/u-boot/board/freescale/mx53smd/
Dmx53smd.c23 u32 size1, size2; in dram_init() local
26 size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE); in dram_init()
28 gd->ram_size = size1 + size2; in dram_init()
/external/u-boot/lib/
Dlmb.c44 phys_size_t size1, phys_addr_t base2, phys_size_t size2) in lmb_addrs_overlap() argument
46 return ((base1 < (base2+size2)) && (base2 < (base1+size1))); in lmb_addrs_overlap()
50 phys_addr_t base2, phys_size_t size2) in lmb_addrs_adjacent() argument
54 else if (base1 == base2 + size2) in lmb_addrs_adjacent()
66 phys_size_t size2 = rgn->region[r2].size; in lmb_regions_adjacent() local
68 return lmb_addrs_adjacent(base1, size1, base2, size2); in lmb_regions_adjacent()
/external/python/cpython2/Lib/test/
Dtest_gdbm.py78 size2 = os.path.getsize(filename)
79 self.assertLess(size2, size1)
80 self.assertGreaterEqual(size2, size0)
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapSizeTester.java52 int size2 = 0; in testSize() local
54 size2 += entry2.getValue().size(); in testSize()
56 assertEquals(expectedSize, size2); in testSize()
/external/cldr/tools/java/org/unicode/cldr/util/
DSetComparator.java10 int size2 = o2.size(); in compare() local
11 int diff = size1 - size2; in compare()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSpecConstantTests.cpp1228 const int size2, in generateArrayConstructorString() argument
1232 const bool isArrayOfArray = (size2 > 0); in generateArrayConstructorString()
1241 int idxEnd = size2; in generateArrayConstructorString()
1246 …<< (iterNdx != 0 ? ",\n" + padding : "") << glu::getDataTypeName(elemType) << "[" << size2 << "]("; in generateArrayConstructorString()
1254 idxBegin += size2; in generateArrayConstructorString()
1255 idxEnd += size2; in generateArrayConstructorString()
1327 const int size2, in generateShaderChecksumComputationCode() argument
1336 if (size2 > 0) in generateShaderChecksumComputationCode()
1340 << " for (int j = 0; j < " << size2 << "; ++j)\n" in generateShaderChecksumComputationCode()
1407 const int size2 = glu::isDataTypeMatrix(type) ? glu::getDataTypeMatrixNumRows(type) : 0; in makeMatrixVectorCompositeCaseDefinition() local
[all …]
/external/u-boot/board/freescale/mx35pdk/
Dmx35pdk.c40 u32 size1, size2; in dram_init() local
43 size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE); in dram_init()
45 gd->ram_size = size1 + size2; in dram_init()

1234