| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected