Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/valgrind/none/tests/ppc64/
Ddata-cache-instructions.c21 int block_size, test_block_size = 4 * MAX_DCBZL_SZB, err; in query_block_size() local
34 for (block_size = 0, p = rb; (p - rb) < test_block_size; p++) in query_block_size()
36 block_size++; in query_block_size()
37 assert(block_size == 16 || block_size == 32 || block_size == 64 || block_size == 128); in query_block_size()
40 return block_size; in query_block_size()
44 static void test_dcbzl_at(char *addr, char *buffer, int block_size) in test_dcbzl_at() argument
49 memset(buffer, 0xff, 3 * block_size); in test_dcbzl_at()
51 for (i = 0; i < block_size; i++) { in test_dcbzl_at()
53 assert(buffer[block_size + i] == 0x00); in test_dcbzl_at()
54 assert(buffer[2 * block_size + i] == 0xff); in test_dcbzl_at()
[all …]
/external/valgrind/none/tests/ppc32/
Ddata-cache-instructions.c21 int block_size, test_block_size = 4 * MAX_DCBZL_SZB, err; in query_block_size() local
34 for (block_size = 0, p = rb; (p - rb) < test_block_size; p++) in query_block_size()
36 block_size++; in query_block_size()
37 assert(block_size == 16 || block_size == 32 || block_size == 64 || block_size == 128); in query_block_size()
40 return block_size; in query_block_size()
44 static void test_dcbzl_at(char *addr, char *buffer, int block_size) in test_dcbzl_at() argument
49 memset(buffer, 0xff, 3 * block_size); in test_dcbzl_at()
51 for (i = 0; i < block_size; i++) { in test_dcbzl_at()
53 assert(buffer[block_size + i] == 0x00); in test_dcbzl_at()
54 assert(buffer[2 * block_size + i] == 0xff); in test_dcbzl_at()
[all …]
/external/opencv3/3rdparty/libjpeg/
Djdinput.c57 if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom) { in jpeg_core_output_dimensions()
60 jdiv_round_up((long) cinfo->image_width, (long) cinfo->block_size); in jpeg_core_output_dimensions()
62 jdiv_round_up((long) cinfo->image_height, (long) cinfo->block_size); in jpeg_core_output_dimensions()
65 } else if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom * 2) { in jpeg_core_output_dimensions()
68 jdiv_round_up((long) cinfo->image_width * 2L, (long) cinfo->block_size); in jpeg_core_output_dimensions()
70 jdiv_round_up((long) cinfo->image_height * 2L, (long) cinfo->block_size); in jpeg_core_output_dimensions()
73 } else if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom * 3) { in jpeg_core_output_dimensions()
76 jdiv_round_up((long) cinfo->image_width * 3L, (long) cinfo->block_size); in jpeg_core_output_dimensions()
78 jdiv_round_up((long) cinfo->image_height * 3L, (long) cinfo->block_size); in jpeg_core_output_dimensions()
81 } else if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom * 4) { in jpeg_core_output_dimensions()
[all …]
Djcmaster.c68 if (cinfo->scale_num >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
70 cinfo->jpeg_width = cinfo->image_width * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
71 cinfo->jpeg_height = cinfo->image_height * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
74 } else if (cinfo->scale_num * 2 >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
77 jdiv_round_up((long) cinfo->image_width * cinfo->block_size, 2L); in jpeg_calc_jpeg_dimensions()
79 jdiv_round_up((long) cinfo->image_height * cinfo->block_size, 2L); in jpeg_calc_jpeg_dimensions()
82 } else if (cinfo->scale_num * 3 >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
85 jdiv_round_up((long) cinfo->image_width * cinfo->block_size, 3L); in jpeg_calc_jpeg_dimensions()
87 jdiv_round_up((long) cinfo->image_height * cinfo->block_size, 3L); in jpeg_calc_jpeg_dimensions()
90 } else if (cinfo->scale_num * 4 >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
[all …]
/external/opencv3/modules/core/src/opencl/
Dfft.cl35 const int x, const int block_size)
37 const int k = x & (block_size - 1);
42 smem[dst_ind+block_size] = a0 - a1;
47 const int x, const int block_size)
49 const int k = x & (block_size - 1);
51 a2 = mul_complex(twiddles[k + block_size], a2);
52 a3 = mul_complex(twiddles[k + 2*block_size], a3);
62 smem[dst_ind + block_size] = a2 + a3;
63 smem[dst_ind + 2*block_size] = b0 - b1;
64 smem[dst_ind + 3*block_size] = a2 - a3;
[all …]
/external/opencv3/modules/cudaimgproc/src/cuda/
Dcorners.cu64 __global__ void cornerHarris_kernel(const int block_size, const float k, PtrStepSzf dst) in cornerHarris_kernel() argument
75 const int ibegin = y - (block_size / 2); in cornerHarris_kernel()
76 const int jbegin = x - (block_size / 2); in cornerHarris_kernel()
77 const int iend = ibegin + block_size; in cornerHarris_kernel()
78 const int jend = jbegin + block_size; in cornerHarris_kernel()
98 …__global__ void cornerHarris_kernel(const int block_size, const float k, PtrStepSzf dst, const BR … in cornerHarris_kernel() argument
109 const int ibegin = y - (block_size / 2); in cornerHarris_kernel()
110 const int jbegin = x - (block_size / 2); in cornerHarris_kernel()
111 const int iend = ibegin + block_size; in cornerHarris_kernel()
112 const int jend = jbegin + block_size; in cornerHarris_kernel()
[all …]
/external/squashfs-tools/squashfs-tools/
Dcompressor.h47 int block_size, int datablock) in compressor_init() argument
51 return comp->init(stream, block_size, datablock); in compressor_init()
56 void *dest, void *src, int size, int block_size, int *error) in compressor_compress() argument
58 return comp->compress(strm, dest, src, size, block_size, error); in compressor_compress()
63 void *src, int size, int block_size, int *error) in compressor_uncompress() argument
65 return comp->uncompress(dest, src, size, block_size, error); in compressor_uncompress()
83 static inline int compressor_options_post(struct compressor *comp, int block_size) in compressor_options_post() argument
87 return comp->options_post(block_size); in compressor_options_post()
92 int block_size, int *size) in compressor_dump_options() argument
96 return comp->dump_options(block_size, size); in compressor_dump_options()
[all …]
/external/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc55 const int block_size = 100; in TEST() local
56 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); in TEST()
64 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
65 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
89 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
90 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
117 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
118 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
174 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
175 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
Dzero_copy_stream_impl_lite.cc57 int block_size) in ArrayInputStream() argument
60 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
110 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument
113 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
217 CopyingInputStream* copying_stream, int block_size) in CopyingInputStreamAdaptor() argument
222 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
323 CopyingOutputStream* copying_stream, int block_size) in CopyingOutputStreamAdaptor() argument
328 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
/external/opencv/cxcore/src/
Dcxmean.cpp133 #define ICV_MEAN_ENTRY_BLOCK_COMMON( block_size ) \ argument
134 int remaining = block_size; \
137 #define ICV_MEAN_ENTRY_BLOCK_C1( sumtype, worktype, block_size )\ argument
140 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
142 #define ICV_MEAN_ENTRY_BLOCK_C2( sumtype, worktype, block_size )\ argument
145 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
147 #define ICV_MEAN_ENTRY_BLOCK_C3( sumtype, worktype, block_size )\ argument
150 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
152 #define ICV_MEAN_ENTRY_BLOCK_C4( sumtype, worktype, block_size )\ argument
155 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
[all …]
Dcxmeansdv.cpp270 #define ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size ) \ argument
271 int remaining = block_size; \
275 worktype, sqworktype, block_size ) \ argument
280 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
283 worktype, sqworktype, block_size ) \ argument
288 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
291 worktype, sqworktype, block_size ) \ argument
296 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
299 worktype, sqworktype, block_size ) \ argument
304 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
[all …]
Dcxnorm.cpp139 post_func, arrtype, normtype, worktype, block_size ) \ argument
143 int remaining = block_size; \
159 remaining = block_size; \
173 post_func, arrtype, normtype, worktype, block_size ) \ argument
197 post_func, arrtype, normtype, worktype, block_size ) \ argument
218 normtype, worktype, block_size ) \ argument
222 int remaining = block_size; \
240 remaining = block_size; \
255 arrtype, normtype, worktype, block_size ) \ argument
277 normtype, worktype, block_size ) \ argument
[all …]
/external/libvpx/libvpx/test/
Dvp9_error_block_test.cc35 intptr_t block_size,
65 intptr_t block_size; in TEST_P() local
73 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P()
74 for (int j = 0; j < block_size; j++) { in TEST_P()
87 ref_ret = ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, in TEST_P()
89 ASM_REGISTER_STATE_CHECK(ret = error_block_op_(coeff, dqcoeff, block_size, in TEST_P()
108 intptr_t block_size; in TEST_P() local
123 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P()
124 for (int j = 0; j < block_size; j++) { in TEST_P()
145 ref_ret = ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, in TEST_P()
[all …]
Dpartial_idct_test.cc84 const int block_size = size * size; in TEST_P() local
92 memset(dst1, 0, sizeof(*dst1) * block_size); in TEST_P()
93 memset(dst2, 0, sizeof(*dst2) * block_size); in TEST_P()
94 memset(test_coef_block1, 0, sizeof(*test_coef_block1) * block_size); in TEST_P()
95 memset(test_coef_block2, 0, sizeof(*test_coef_block2) * block_size); in TEST_P()
102 for (int j = 0; j < block_size; ++j) in TEST_P()
105 for (int j = 0; j < block_size; ++j) in TEST_P()
108 for (int j = 0; j < block_size; ++j) { in TEST_P()
125 for (int j = 0; j < block_size; ++j) { in TEST_P()
163 const int block_size = size * size; in TEST_P() local
[all …]
Dvp10_inv_txfm_test.cc172 const int block_size = size * size; in TEST_P() local
180 memset(dst1, 0, sizeof(*dst1) * block_size); in TEST_P()
181 memset(dst2, 0, sizeof(*dst2) * block_size); in TEST_P()
182 memset(test_coef_block1, 0, sizeof(*test_coef_block1) * block_size); in TEST_P()
183 memset(test_coef_block2, 0, sizeof(*test_coef_block2) * block_size); in TEST_P()
190 for (int j = 0; j < block_size; ++j) in TEST_P()
193 for (int j = 0; j < block_size; ++j) in TEST_P()
196 for (int j = 0; j < block_size; ++j) { in TEST_P()
213 for (int j = 0; j < block_size; ++j) { in TEST_P()
251 const int block_size = size * size; in TEST_P() local
[all …]
/external/e2fsprogs/misc/
Dbadblocks.c351 static int do_read (int dev, unsigned char * buffer, int try, int block_size, in do_read() argument
362 set_o_direct(dev, buffer, try * block_size, in do_read()
363 ((ext2_loff_t) current_block) * block_size); in do_read()
369 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
370 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
376 got = read (dev, buffer, try * block_size); in do_read()
383 got /= block_size; in do_read()
427 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
435 set_o_direct(dev, buffer, try * block_size, in do_write()
436 ((ext2_loff_t) current_block) * block_size); in do_write()
[all …]
/external/webrtc/talk/session/media/
Dplanarfunctions_unittest.cc136 int block_size, in CreateFakeYuvTestingImage() argument
141 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeYuvTestingImage()
174 int color = ((i / block_size) + (j / block_size)) % kTestingColorNum; in CreateFakeYuvTestingImage()
195 int block_size, in CreateFakeInterleaveYuvTestingImage() argument
198 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeInterleaveYuvTestingImage()
214 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
216 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
241 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
243 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
280 int block_size, in CreateFakeNV12TestingImage() argument
[all …]
/external/e2fsprogs/ext2ed/
Dfile_com.c34 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
36 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
44 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info()
85 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock()
86 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock()
88 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock()
106 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next()
133 if (offset < file_system_info.block_size) { in type_file___offset()
186 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock()
187 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock()
[all …]
/external/autotest/client/site_tests/platform_DMVerityBitCorruption/
Dplatform_DMVerityBitCorruption.py17 def mod_tweak_block(self, run_count, backing_path, block_size, argument
20 run_count, backing_path, block_size, block_count))
23 dev.seek(run_count * block_size + self._adjustment)
25 dev.seek(run_count * block_size + self._adjustment)
29 def mod_tweak_hash_block(self, run_count, backing_path, block_size, argument
32 run_count, backing_path, block_size, block_count))
35 dev.seek(block_count * block_size, os.SEEK_SET)
36 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
39 dev.seek(block_count * block_size, os.SEEK_SET)
40 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
/external/autotest/client/site_tests/platform_DMVerityCorruption/
Dplatform_DMVerityCorruption.py13 def mod_zerofill_block(self, run_count, backing_path, block_size, argument
16 run_count, backing_path, block_size, block_count))
19 verity_utils.system(dd_cmd % (backing_path, block_size, run_count))
21 def mod_Afill_hash_block(self, run_count, backing_path, block_size, argument
24 run_count, backing_path, block_size, block_count))
26 dev.seek(block_count * block_size, os.SEEK_SET)
27 dev.seek(run_count * block_size, os.SEEK_CUR)
28 dev.write('A' * block_size)
/external/ceres-solver/internal/ceres/
Dschur_jacobi_preconditioner.cc115 const int block_size = block_size_[i]; in RightMultiply() local
116 ConstMatrixRef block(lhs_values, block_size, block_size); in RightMultiply()
118 VectorRef(y, block_size) = in RightMultiply()
122 .solve(ConstVectorRef(x, block_size)); in RightMultiply()
124 x += block_size; in RightMultiply()
125 y += block_size; in RightMultiply()
126 lhs_values += block_size * block_size; in RightMultiply()
/external/vboot_reference/host/lib/
Dhost_common.c28 uint64_t block_size = signed_size + siglen_map[signing_key->algorithm]; in CreateFirmwarePreamble() local
35 h = (VbFirmwarePreambleHeader *)malloc(block_size); in CreateFirmwarePreamble()
39 Memset(h, 0, block_size); in CreateFirmwarePreamble()
46 h->preamble_size = block_size; in CreateFirmwarePreamble()
88 uint64_t block_size = signed_size + siglen_map[signing_key->algorithm]; in CreateKernelPreamble() local
94 if (block_size < desired_size) in CreateKernelPreamble()
95 block_size = desired_size; in CreateKernelPreamble()
98 h = (VbKernelPreambleHeader *)malloc(block_size); in CreateKernelPreamble()
102 Memset(h, 0, block_size); in CreateKernelPreamble()
108 h->preamble_size = block_size; in CreateKernelPreamble()
/external/mesa3d/src/gallium/state_trackers/clover/api/
Dkernel.cpp168 kern->block_size()); in clGetKernelWorkGroupInfo()
193 const size_t *grid_size, const size_t *block_size, in kernel_validate() argument
226 if (block_size) { in kernel_validate()
229 }, block_size, block_size + dims, in kernel_validate()
235 }, block_size, block_size + dims, grid_size)) in kernel_validate()
239 block_size, block_size + dims) > in kernel_validate()
252 const std::vector<size_t> &block_size) { in kernel_op() argument
255 block_size.begin()); in kernel_op()
258 kern->launch(*q, grid_offset, reduced_grid_size, block_size); in kernel_op()
280 const std::vector<size_t> block_size = opt_vector(pblock_size, dims); in clEnqueueNDRangeKernel() local
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dtransform.py54 def _int2bytes(number, block_size=None): argument
99 if block_size and block_size > 0:
100 if needed_bytes > block_size:
102 'is %i' % (needed_bytes, block_size))
110 if block_size and block_size > 0:
111 padding = (block_size - needed_bytes) * ZERO_BYTE
/external/e2fsprogs/lib/ext2fs/
Dundo_io.c144 int block_size ; in write_file_system_identity() local
148 block_size = channel->block_size; in write_file_system_identity()
178 io_channel_set_blksize(channel, block_size); in write_file_system_identity()
182 static errcode_t write_block_size(TDB_CONTEXT *tdb, int block_size) in write_block_size() argument
189 tdb_data.dptr = (unsigned char *)&(block_size); in write_block_size()
190 tdb_data.dsize = sizeof(block_size); in write_block_size()
223 size = channel->block_size; in undo_write_tdb()
228 size = count * channel->block_size; in undo_write_tdb()
236 offset = (block * channel->block_size) + data->offset ; in undo_write_tdb()
261 backing_blk_num = (offset - data->offset) / channel->block_size; in undo_write_tdb()
[all …]

12345678910>>...13