MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / callInterface3

Function callInterface3

test/embind/embind_benchmark.cpp:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void callInterface3(unsigned N, Interface& o) {
218 for (unsigned i = 0; i < N; i += 8) {
219 o.call_with_memory_view(sizeof(int), &i);
220 o.call_with_memory_view(sizeof(int), &i);
221 o.call_with_memory_view(sizeof(int), &i);
222 o.call_with_memory_view(sizeof(int), &i);
223 o.call_with_memory_view(sizeof(int), &i);
224 o.call_with_memory_view(sizeof(int), &i);
225 o.call_with_memory_view(sizeof(int), &i);
226 o.call_with_memory_view(sizeof(int), &i);
227 }
228}
229
230EMSCRIPTEN_BINDINGS(benchmark) {
231 using namespace emscripten;

Callers

nothing calls this directly

Calls 1

call_with_memory_viewMethod · 0.80

Tested by

no test coverage detected