MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / VecLoadSmearScalar

Function VecLoadSmearScalar

TSSimd.h:462–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460 }
461
462 inline vec_float VecLoadSmearScalar(const float *ptr)
463 {
464 #if defined(TERATHON_SSE)
465
466 vec_float v = _mm_load_ss(ptr);
467 return (_mm_shuffle_ps(v, v, _MM_SHUFFLE(0, 0, 0, 0)));
468
469 #elif defined(TERATHON_NEON)
470
471 return (vld1q_dup_f32(ptr));
472
473 #endif
474 }
475
476 inline void VecStore(const vec_float& v, float *ptr)
477 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected