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

Function tostr

test/sse/test_sse.h:253–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void tostr(__m128 *m, char *outstr) {
254 union { __m128 m; float val[4]; } u;
255 u.m = *m;
256 char s[4][32];
257 SerializeFloat(u.val[0], s[0]);
258 SerializeFloat(u.val[1], s[1]);
259 SerializeFloat(u.val[2], s[2]);
260 SerializeFloat(u.val[3], s[3]);
261 sprintf(outstr, "[%s,%s,%s,%s]", s[3], s[2], s[1], s[0]);
262}
263
264void tostr_approx(__m128 *m, char *outstr, bool approximate) {
265 union { __m128 m; float val[4]; } u;

Callers 3

test_avx.cppFile · 0.85
test_sse.hFile · 0.85
Ret_M128_FloatPtrFunction · 0.85

Calls 4

SerializeFloatFunction · 0.85
sprintfFunction · 0.85
SerializeDoubleFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected