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

Function alloc_float_buffer

test/benchmark/benchmark_sse.h:88–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86// Slightly awkward way to allocate so that compiler will definitely not see this memory area as compile-time optimizable:
87int NOINLINE *alloc_int_buffer() { return always_true() ? (int*)aligned_alloc(16, (N+16)*sizeof(int)) : 0; }
88float NOINLINE *alloc_float_buffer() { return always_true() ? (float*)aligned_alloc(16, (N+16)*sizeof(float)) : 0; }
89double NOINLINE *alloc_double_buffer() { return always_true() ? (double*)aligned_alloc(16, (N+16)*sizeof(double)) : 0; }
90
91template<typename T>

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

always_trueFunction · 0.70
aligned_allocFunction · 0.50

Tested by

no test coverage detected