Home
last modified time | relevance | path

Searched refs:size (Results 1776 - 1800 of 30191) sorted by relevance

1...<<71727374757677787980>>...1208

/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
H A DCMapFormat4.java32 FontData.DataSize.USHORT.size(), in glyphId()
34 FontData.DataSize.USHORT.size(), in glyphId()
101 data.readUShort(startCodeOffset(segCount) + index * FontData.DataSize.USHORT.size()); in startCode()
107 Offset.format4EndCount.offset + FontData.DataSize.USHORT.size() + segCount in startCodeOffset()
108 * FontData.DataSize.USHORT.size(); in startCodeOffset()
114 data.readUShort(Offset.format4EndCount.offset + index * FontData.DataSize.USHORT.size()); in endCode()
120 data.readShort(idDeltaOffset(segCount) + index * FontData.DataSize.SHORT.size()); in idDelta()
126 Offset.format4EndCount.offset + ((2 * segCount) + 1) * FontData.DataSize.USHORT.size(); in idDeltaOffset()
132 data.readUShort(idRangeOffsetOffset(segCount) + index * FontData.DataSize.USHORT.size()); in idRangeOffset()
138 Offset.format4EndCount.offset + ((2 * segCount) + 1) * FontData.DataSize.USHORT.size() in idRangeOffsetOffset()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.c43 ret = drm_mm_insert_node_generic(&private->mm, &rk_obj->mm, rk_obj->base.size, PAGE_SIZE, 0, 0); in rockchip_gem_iommu_map()
54 if (ret < rk_obj->base.size) { in rockchip_gem_iommu_map()
55 DRM_ERROR("failed to map buffer: size=%zd request_size=%zd\n", ret, rk_obj->base.size); in rockchip_gem_iommu_map()
62 rk_obj->size = ret; in rockchip_gem_iommu_map()
79 iommu_unmap(private->domain, rk_obj->dma_addr, rk_obj->size); in rockchip_gem_iommu_unmap()
145 rk_obj->num_pages = rk_obj->base.size >> PAGE_SHIFT; in rockchip_gem_get_pages()
251 static inline void *drm_calloc_large(size_t nmemb, size_t size);
268 rk_obj->kvaddr = dma_alloc_attrs(drm->dev, obj->size, &rk_obj->dma_handle, GFP_KERNEL, rk_obj->dma_attrs); in rockchip_gem_alloc_dma()
270 DRM_ERROR("failed to allocate %zu byte dma buffer", obj->size); in rockchip_gem_alloc_dma()
318 drm_calloc_large(size_t nmemb, size_t size) drm_calloc_large() argument
596 rockchip_gem_alloc_object(struct drm_device *drm, unsigned int size) rockchip_gem_alloc_object() argument
624 rockchip_gem_create_object(struct drm_device *drm, unsigned int size, bool alloc_kmap, unsigned int flags) rockchip_gem_create_object() argument
707 rockchip_gem_create_with_handle(struct drm_file *file_priv, struct drm_device *drm, unsigned int size, unsigned int *handle, unsigned int flags) rockchip_gem_create_with_handle() argument
976 unsigned int sg_offset, sg_left, size = 0; rockchip_gem_prime_sgl_sync_range() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dapi_test.cpp62 int64_t size; member in __anon10299::DemuxerInnerApiNdkTest
73 size = static_cast<int64_t>(fileStatus.st_size); in SetUp()
76 std::cout << fd1 << "----------" << g_file1 << "=====" << size << std::endl; in SetUp()
149 source = AVSourceFactory::CreateWithFD(fd1, 0, size); in HWTEST_F()
186 source = AVSourceFactory::CreateWithFD(fd1, 0, size); in HWTEST_F()
200 source = AVSourceFactory::CreateWithFD(fd1, 0, size); in HWTEST_F()
214 int32_t size = g_width * g_height; in HWTEST_F() local
216 uint8_t data[size]; in HWTEST_F()
218 (size, AVSharedMemory::FLAGS_READ_WRITE, "userBuffer"); in HWTEST_F()
220 (void)memcpy_s(avMemBuffer->GetBase(), avMemBuffer->GetSize(), data, size); in HWTEST_F()
302 int32_t size = g_width * g_height; HWTEST_F() local
413 int32_t size = g_width * g_height; HWTEST_F() local
[all...]
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_bufmgr.c99 #define VG_DEFINED(ptr, size) VG(VALGRIND_MAKE_MEM_DEFINED(ptr, size))
100 #define VG_NOACCESS(ptr, size) VG(VALGRIND_MAKE_MEM_NOACCESS(ptr, size))
122 uint64_t size; member
215 * This function finds the correct bucket fit for the input size.
216 * The function works with O(1) complexity when the requested size
217 * was queried instead of iterating the size through all the buckets.
220 bucket_for_size(struct crocus_bufmgr *bufmgr, uint64_t size) in bucket_for_size() argument
222 /* Calculating the pages and rounding up to the page size in bucket_for_size()
389 bo_alloc_internal(struct crocus_bufmgr *bufmgr, const char *name, uint64_t size, uint32_t alignment, unsigned flags, uint32_t tiling_mode, uint32_t stride) bo_alloc_internal() argument
457 crocus_bo_alloc(struct crocus_bufmgr *bufmgr, const char *name, uint64_t size) crocus_bo_alloc() argument
466 crocus_bo_alloc_tiled(struct crocus_bufmgr *bufmgr, const char *name, uint64_t size, uint32_t alignment, uint32_t tiling_mode, uint32_t pitch, unsigned flags) crocus_bo_alloc_tiled() argument
475 crocus_bo_create_userptr(struct crocus_bufmgr *bufmgr, const char *name, void *ptr, size_t size) crocus_bo_create_userptr() argument
1475 add_bucket(struct crocus_bufmgr *bufmgr, int size) add_bucket() argument
1493 uint64_t size, cache_max_size = 64 * 1024 * 1024; init_cache_buckets() local
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cTextureGatherTests.cpp372 GLint size = csize; in CreateTexture2DRgb() local
378 for (int i = 0; size > 0; ++i, size /= 2) in CreateTexture2DRgb()
380 std::vector<Vec3> pixels(size * size, Vec3(1.0)); in CreateTexture2DRgb()
381 glTexImage2D(target, i, internal_format, size, size, 0, format, tex_type, &pixels[0]); in CreateTexture2DRgb()
409 GLint size = csize; in CreateTexture2DRg() local
415 for (int i = 0; size > 0; ++i, size / in CreateTexture2DRg()
447 GLint size = csize; CreateTexture2DR() local
482 GLint size = csize; CreateTexture2DInt() local
514 GLint size = csize; CreateTexture2DArrayInt() local
549 GLint size = csize; CreateTexture2DArray() local
583 GLint size = csize; CreateTextureCubeInt() local
628 GLint size = csize; CreateTextureCube() local
676 GLint size = csize; CreateTextureSRGB() local
712 GLint size = csize; CreateTexture2D() local
[all...]
/third_party/protobuf/src/google/protobuf/
H A Dmessage_lite.cc74 // When serializing, we first compute the byte size, then serialize the message.
88 << "Byte size calculation and serialization were inconsistent. This " in ByteSizeConsistencyError()
116 inline StringPiece as_string_view(const void* data, int size) { in as_string_view() argument
117 return StringPiece(static_cast<const char*>(data), size); in as_string_view()
209 bool Next(const void** data, int* size) final {
210 if (!cis_->GetDirectBufferPointer(data, size)) return false;
211 cis_->Skip(*size);
297 io::ZeroCopyInputStream* input, int size) { in MergePartialFromBoundedZeroCopyStream()
298 return ParseFrom<kMergePartial>(internal::BoundedZCIS{input, size}); in MergePartialFromBoundedZeroCopyStream()
302 int size) { in MergeFromBoundedZeroCopyStream()
296 MergePartialFromBoundedZeroCopyStream( io::ZeroCopyInputStream* input, int size) MergePartialFromBoundedZeroCopyStream() argument
301 MergeFromBoundedZeroCopyStream(io::ZeroCopyInputStream* input, int size) MergeFromBoundedZeroCopyStream() argument
306 ParseFromBoundedZeroCopyStream(io::ZeroCopyInputStream* input, int size) ParseFromBoundedZeroCopyStream() argument
311 ParsePartialFromBoundedZeroCopyStream( io::ZeroCopyInputStream* input, int size) ParsePartialFromBoundedZeroCopyStream() argument
324 ParseFromArray(const void* data, int size) ParseFromArray() argument
328 ParsePartialFromArray(const void* data, int size) ParsePartialFromArray() argument
339 SerializeToArrayImpl(const MessageLite& msg, uint8* target, int size) SerializeToArrayImpl() argument
378 const size_t size = ByteSizeLong(); // Force size to be cached. SerializePartialToCodedStream() local
408 const size_t size = ByteSizeLong(); // Force size to be cached. SerializePartialToZeroCopyStream() local
[all...]
/third_party/vk-gl-cts/framework/opengl/
H A DgluShaderProgram.cpp118 // claim buf size is one smaller to protect from off-by-one writing over buffer bounds in compile()
119 m_gl.getShaderInfoLog(m_shader, (int)infoLog.size() - 1, &unusedLen, &infoLog[0]); in compile()
121 if (infoLog[(int)(infoLog.size()) - 1] != '\0') in compile()
124 m_info.infoLog = std::string(&infoLog[0], infoLog.size()); in compile()
176 // claim buf size is one smaller to protect from off-by-one writing over buffer bounds in specialize()
177 m_gl.getShaderInfoLog(m_shader, (int)infoLog.size() - 1, &unusedLen, &infoLog[0]); in specialize()
180 if (infoLog[(int)(infoLog.size()) - 1] != '\0') in specialize()
183 m_info.infoLog = std::string(&infoLog[0], infoLog.size()); in specialize()
221 // claim buf size is one smaller to protect from off-by-one writing over buffer bounds in getProgramInfoLog()
222 gl.getProgramInfoLog(program, (int)infoLog.size() in getProgramInfoLog()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/appmgrservicefirst_fuzzer/
H A Dappmgrservicefirst_fuzzer.cpp64 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
86 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
89 std::string renderParam(data, size); in DoSomethingInterestingWithMyAPI()
106 std::string result(data, size); in DoSomethingInterestingWithMyAPI()
109 std::string flag(data, size); in DoSomethingInterestingWithMyAPI()
127 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
139 std::string msg(data, size); in DoSomethingInterestingWithMyAPI()
148 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
156 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
157 if (size > OHO in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_js_info.cpp160 auto size = sharedImageMap.size(); in WriteImageData() local
161 if (!parcel.WriteInt32(size)) { in WriteImageData()
164 if (size > IMAGE_DATA_THRESHOLD) { in WriteImageData()
165 HILOG_INFO("unexpected image number %{public}zu", size); in WriteImageData()
198 auto size = parcel.ReadInt32(); in ReadImageData() local
199 HILOG_INFO("image numer is %{public}d", size); in ReadImageData()
200 if (size > IMAGE_DATA_THRESHOLD) { in ReadImageData()
201 HILOG_WARN("unexpected image number %{public}d", size); in ReadImageData()
204 for (auto i = 0; i < size; in ReadImageData()
236 auto size = sharedImageMap.size(); ConvertRawImageData() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_multitext_component.cpp29 if (index >= range_.size()) { in OnColumnsBuilding()
30 LOGW("range size is smaller than column count"); in OnColumnsBuilding()
48 for (uint32_t subIndex = 0; subIndex < textRange.size(); ++subIndex) { in OnColumnsBuilding()
51 if (index < selectedIndexes_.size()) { in OnColumnsBuilding()
52 selectedIndexes_[index] = textRange.empty() ? 0 : selectedIndexes_[index] % textRange.size(); in OnColumnsBuilding()
55 LOGE("array size of selected is not equal range."); in OnColumnsBuilding()
91 for (uint32_t index = 0; index < selectedValues_.size(); ++index) { in GetSelectedObject()
105 for (uint32_t index = 0; index < selectedIndexes_.size(); ++index) { in GetSelectedObject()
150 columnCount_ = range_.size(); in OnColumnsCreating()
203 if (value.size() ! in IsEqualSelected()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/
H A Dradio_layout_algorithm.cpp61 auto size = SizeF(width, height); in MeasureContent() local
62 size.Constrain(contentConstraint.minSize, contentConstraint.maxSize); in MeasureContent()
64 MinusPaddingToSize(padding, size); in MeasureContent()
65 if (!NearEqual(size.Width(), size.Height())) { in MeasureContent()
66 auto length = std::min(size.Width(), size.Height()); in MeasureContent()
67 size.SetWidth(length); in MeasureContent()
68 size.SetHeight(length); in MeasureContent()
70 return size; in MeasureContent()
117 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); Layout() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/
H A Drs_frame_rate_vote_test.cpp57 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
62 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
67 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
72 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
77 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
82 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
87 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 0); in HWTEST_F()
92 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 1); in HWTEST_F()
109 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), 1); in HWTEST_F()
112 ASSERT_EQ(DelayedSingleton<RSFrameRateVote>::GetInstance()->surfaceVideoFrameRateVote_.size(), in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/typeface_fuzzer/
H A Dtypeface_fuzzer.cpp31 bool TypefaceFuzzTest001(const uint8_t* data, size_t size) in TypefaceFuzzTest001() argument
38 g_size = size; in TypefaceFuzzTest001()
57 bool TypefaceFuzzTest002(const uint8_t* data, size_t size) in TypefaceFuzzTest002() argument
64 g_size = size; in TypefaceFuzzTest002()
81 bool TypefaceFuzzTest003(const uint8_t* data, size_t size) in TypefaceFuzzTest003() argument
88 g_size = size; in TypefaceFuzzTest003()
109 bool TypefaceFuzzTest004(const uint8_t* data, size_t size) in TypefaceFuzzTest004() argument
116 g_size = size; in TypefaceFuzzTest004()
152 bool TypefaceFuzzTest005(const uint8_t* data, size_t size) in TypefaceFuzzTest005() argument
159 g_size = size; in TypefaceFuzzTest005()
185 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rslineargradientblurshaderfilter_fuzzer/
H A Drslineargradientblurshaderfilter_fuzzer.cpp44 * describe: get data from outside untrusted data(DATA) which size is according to sizeof(T)
77 bool DoCreateRSLinearGradientBlurShaderFilter(const uint8_t* data, size_t size) in DoCreateRSLinearGradientBlurShaderFilter() argument
84 g_size = size; in DoCreateRSLinearGradientBlurShaderFilter()
103 bool DoGenerateGEVisualEffect(const uint8_t* data, size_t size) in DoGenerateGEVisualEffect() argument
110 g_size = size; in DoGenerateGEVisualEffect()
131 bool DoSetGeometry(const uint8_t* data, size_t size) in DoSetGeometry() argument
138 g_size = size; in DoSetGeometry()
155 bool DoIsOffscreenCanvas(const uint8_t* data, size_t size) in DoIsOffscreenCanvas() argument
162 g_size = size; in DoIsOffscreenCanvas()
183 float DoGetLinearGradientBlurRadius(const uint8_t* data, size_t size) in DoGetLinearGradientBlurRadius() argument
211 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/camera_framework/test/fuzztest/streamrepeatstub_fuzzer/
H A Dstream_repeat_stub_fuzzer.cpp56 void TestHandleAddDeferredSurface(uint8_t *rawData, size_t size) in TestHandleAddDeferredSurface() argument
69 data.WriteRawData(rawData, size); in TestHandleAddDeferredSurface()
74 void TestHandleAttachMetaSurface(uint8_t *rawData, size_t size) in TestHandleAttachMetaSurface() argument
87 data.WriteRawData(rawData, size); in TestHandleAttachMetaSurface()
92 void TestHandleSetCallback(uint8_t *rawData, size_t size) in TestHandleSetCallback() argument
112 data.WriteRawData(rawData, size); in TestHandleSetCallback()
118 void Test(uint8_t *rawData, size_t size) in Test() argument
120 if (rawData == nullptr || size < LIMITSIZE) { in Test()
124 Test_OnRemoteRequest(rawData, size); in Test()
125 TestHandleSetCallback(rawData, size); in Test()
144 Test_OnRemoteRequest(uint8_t *rawData, size_t size) Test_OnRemoteRequest() argument
161 LLVMFuzzerTestOneInput(uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/
H A Dauxiliary_picture.cpp30 AuxiliaryPictureType type, Size size) in Create()
38 dstAuxPicture->SetSize(size); in Create()
43 AuxiliaryPictureType type, Size size) in Create()
46 return Create(pixelMap, type, size); in Create()
61 return auxiliaryPictureInfo_.size; in GetSize()
64 void AuxiliaryPicture::SetSize(Size size) in SetSize() argument
66 auxiliaryPictureInfo_.size = size; in SetSize()
146 if (!data.WriteInt32(auxiliaryPictureInfo_.size.height) || !data.WriteInt32(auxiliaryPictureInfo_.size in Marshalling()
29 Create(std::shared_ptr<PixelMap> &content, AuxiliaryPictureType type, Size size) Create() argument
42 Create(sptr<SurfaceBuffer> &surfaceBuffer, AuxiliaryPictureType type, Size size) Create() argument
202 uint64_t size = parcel.ReadUint64(); Unmarshalling() local
[all...]
/foundation/systemabilitymgr/samgr/test/fuzztest/samgrcoverage_fuzzer/
H A Dsamgrcoverage_fuzzer.cpp42 int32_t BuildInt32FromData(const uint8_t* data, size_t size) in BuildInt32FromData() argument
44 if ((data == nullptr) || (size < sizeof(int32_t))) { in BuildInt32FromData()
51 std::string BuildStringFromData(const uint8_t* data, size_t size) in BuildStringFromData() argument
53 if ((data == nullptr) || (size == 0)) { in BuildStringFromData()
56 std::string strVal(reinterpret_cast<const char *>(data), size); in BuildStringFromData() local
60 void FuzzOndemandLoad(const uint8_t* data, size_t size) in FuzzOndemandLoad() argument
66 std::string procName = BuildStringFromData(data, size); in FuzzOndemandLoad()
68 int32_t saId = BuildInt32FromData(data, size); in FuzzOndemandLoad()
102 void FuzzRemoveSystemProcess(const uint8_t* data, size_t size) in FuzzRemoveSystemProcess() argument
108 std::string procName = BuildStringFromData(data, size); in FuzzRemoveSystemProcess()
130 FuzzNotifySystemAbilityLoaded(const uint8_t* data, size_t size) FuzzNotifySystemAbilityLoaded() argument
172 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/
H A Dauth_session_test.c179 int32_t size = SEND_DATA_SIZE_64K + 1; in GetSize() local
181 size = SEND_DATA_SIZE_1K; in GetSize()
183 size = SEND_DATA_SIZE_4K; in GetSize()
185 size = SEND_DATA_SIZE_40K; in GetSize()
187 size = SEND_DATA_SIZE_40K + 1; in GetSize()
189 size = SEND_DATA_SIZE_64K; in GetSize()
191 return size; in GetSize()
205 int32_t size = GetSize(cSize); in TestAuthSessionSendData() local
210 ret = TestSendBytesData(testData, size); in TestAuthSessionSendData()
211 if (size < in TestAuthSessionSendData()
[all...]
/third_party/ffmpeg/libavformat/
H A Dmxg.c134 unsigned int size; in mxg_read_packet() local
171 size = mxg->buffer_ptr - mxg->soi_ptr; in mxg_read_packet()
172 ret = av_new_packet(pkt, size); in mxg_read_packet()
175 memcpy(pkt->data, mxg->soi_ptr, size); in mxg_read_packet()
189 return pkt->size; in mxg_read_packet()
194 size = AV_RB16(mxg->buffer_ptr); in mxg_read_packet()
195 if (size < 2) in mxg_read_packet()
198 if (mxg->cache_size < size) { in mxg_read_packet()
199 ret = mxg_update_cache(s, size); in mxg_read_packet()
205 mxg->cache_size -= size; in mxg_read_packet()
[all...]
/third_party/curl/tests/unit/
H A Dunit1650.c59 size_t size; member
75 size_t size; member
158 size_t size = 0; variable
165 buffer, sizeof(buffer), &size);
171 if(size != req[i].size) {
172 fprintf(stderr, "req %zu: Expected size %zu got %zu\n", i,
173 req[i].size, size);
174 fprintf(stderr, "DNS encode made: %s\n", hexdump(buffer, size));
[all...]
/third_party/backends/lib/
H A Dalloca.c137 alignment chunk size. The following default should work okay. */
163 alloca (size) in alloca()
164 unsigned size; in alloca()
204 if (size == 0)
210 register pointer new = malloc (sizeof (header) + size);
239 long shsize:32; /* Current size of stack (all segments). */
289 long now; /* Current total stack size. */
303 long pad_size; /* Stack pad size. */
305 long current_size; /* Current stack segment size. This
349 long *block, size; in i00afunc() local
423 long size, pseg, this_segment, stack; i00afunc() local
[all...]
/third_party/benchmark/src/
H A Dstatistics.cc35 return StatisticsSum(v) * (1.0 / v.size()); in StatisticsMean()
39 if (v.size() < 3) return StatisticsMean(v); in StatisticsMedian()
42 auto center = copy.begin() + v.size() / 2; in StatisticsMedian()
50 if (v.size() % 2 == 1) return *center; in StatisticsMedian()
72 if (v.size() == 1) return 0.0; in StatisticsStdDev()
74 const double avg_squares = SumSquares(v) * (1.0 / v.size()); in StatisticsStdDev()
75 return Sqrt(v.size() / (v.size() - 1.0) * (avg_squares - Sqr(mean))); in StatisticsStdDev()
79 if (v.size() < 2) return 0.0; in StatisticsCV()
95 if (reports.size() in ComputeStats()
[all...]
/third_party/ltp/testcases/kernel/fs/doio/
H A Ddatapid.c306 int size = 1234; local
311 if ((buffer = (char *)malloc(size)) == NULL) {
316 datapidgen(-1, buffer, size, 3);
319 fwrite(buffer, size, 1, stdout);
323 printf("datapidgen(-1, buffer, size, 3)\n");
325 ret = datapidchk(-1, buffer, size, 3, &errmsg);
327 size, ret, errmsg);
328 ret = datapidchk(-1, &buffer[1], size - 1, 4, &errmsg);
330 size - 1, ret, errmsg);
338 ret = datapidchk(-1, &buffer[1], size
344 datapidgen(getpid(), buffer, size, 5); global() local
[all...]
/third_party/node/lib/internal/webstreams/
H A Dutil.js82 function extractSizeAlgorithm(size) {
83 if (size === undefined) return () => 1;
84 validateFunction(size, 'strategy.size');
85 return size;
155 size,
158 MathMax(0, controller[kState].queueTotalSize - size);
176 function enqueueValueWithSize(controller, value, size) {
179 size = +size;
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_upload_mgr.c44 unsigned default_size; /* Minimum size of the upload buffer, in bytes. */
176 /* Return the allocated buffer size or 0 if it failed. */
182 unsigned size; in u_upload_alloc_buffer() local
190 size = align(MAX2(upload->default_size, min_size), 4096); in u_upload_alloc_buffer()
198 buffer.width0 = size; in u_upload_alloc_buffer()
219 * can be called per upload buffer is "size", because the minimum in u_upload_alloc_buffer()
220 * allocation size is 1, thus u_upload_alloc can only return "size" number in u_upload_alloc_buffer()
232 * so init the buffer_private_refcount to 1 + size - min_size, instead in u_upload_alloc_buffer()
233 * of size t in u_upload_alloc_buffer()
254 u_upload_alloc(struct u_upload_mgr *upload, unsigned min_out_offset, unsigned size, unsigned alignment, unsigned *out_offset, struct pipe_resource **outbuf, void **ptr) u_upload_alloc() argument
319 u_upload_data(struct u_upload_mgr *upload, unsigned min_out_offset, unsigned size, unsigned alignment, const void *data, unsigned *out_offset, struct pipe_resource **outbuf) u_upload_data() argument
[all...]

Completed in 22 milliseconds

1...<<71727374757677787980>>...1208