MCPcopy Create free account
hub / github.com/apache/arrow / StreamWrite

Function StreamWrite

cpp/src/arrow/io/memory_benchmark.cc:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static void StreamWrite(void* src, void* dst, size_t size) {
133 auto simd = static_cast<VectorType*>(dst);
134 const VectorType ones = VectorSet(1);
135 (void)src;
136
137 for (size_t i = 0; i < size / sizeof(VectorType); i += 4) {
138 VectorStreamWrite(&simd[i], ones);
139 VectorStreamWrite(&simd[i + 1], ones);
140 VectorStreamWrite(&simd[i + 2], ones);
141 VectorStreamWrite(&simd[i + 3], ones);
142 }
143}
144
145static void StreamReadWrite(void* src, void* dst, size_t size) {
146 auto src_simd = static_cast<VectorType*>(src);

Callers

nothing calls this directly

Calls 1

armv8_stream_store_pairFunction · 0.85

Tested by

no test coverage detected