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

Function VecLoadVectorConstant

TSSimd.h:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330
331 template <uint32 value>
332 inline vec_float VecLoadVectorConstant(void)
333 {
334 #if defined(TERATHON_SSE)
335
336 alignas(16) static const uint32 k[4] = {value, value, value, value};
337 return (_mm_load_ps(reinterpret_cast<const float *>(k)));
338
339 #elif defined(TERATHON_NEON)
340
341 return (vreinterpretq_f32_u32(vdupq_n_u32(value)));
342
343 #endif
344 }
345
346 template <uint32 value>
347 inline vec_float VecLoadScalarConstant(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected