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

Function getTempOutFloatStore

test/sse/test_sse.h:839–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837
838float tempOutFloatStore[32];
839float *getTempOutFloatStore(int alignmentBytes) {
840 memset(tempOutFloatStore, 0, sizeof(tempOutFloatStore));
841 uintptr_t addr = (uintptr_t)tempOutFloatStore;
842 addr = (addr + alignmentBytes - 1) & ~(alignmentBytes-1);
843 return (float*)addr;
844}
845
846int *getTempOutIntStore(int alignmentBytes) { return (int*)getTempOutFloatStore(alignmentBytes); }
847double *getTempOutDoubleStore(int alignmentBytes) { return (double*)getTempOutFloatStore(alignmentBytes); }

Callers 2

getTempOutIntStoreFunction · 0.85
getTempOutDoubleStoreFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected