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

Function VecLoadScalarConstant

TSSimd.h:347–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345
346 template <uint32 value>
347 inline vec_float VecLoadScalarConstant(void)
348 {
349 #if defined(TERATHON_SSE)
350
351 static const uint32 k = value;
352 return (_mm_load_ss(reinterpret_cast<const float *>(&k)));
353
354 #elif defined(TERATHON_NEON)
355
356 return (vreinterpretq_f32_u32(vdupq_n_u32(value)));
357
358 #endif
359 }
360
361 inline vec_float VecSmearX(const vec_float& v)
362 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected