MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / vec_loadu3

Function vec_loadu3

include/daScript/misc/vectypes.h:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 __forceinline vec4f vec_loadu(const int *v) {return v_cast_vec4f(v_ldui(v));}
51 __forceinline vec4f vec_loadu(const unsigned int *v) {return vec_loadu((const int *)v);}
52 __forceinline vec4f vec_loadu3(const float *v)
53 {
54#ifdef __clang__
55 vec4f vv = v_zero();
56 memcpy(&vv, v, sizeof(float) * 3);
57 return vv;
58#else
59 return v_ldu_p3(v);
60#endif
61 }
62 __forceinline vec4f vec_loadu3(const int *v)
63 {
64#ifdef __clang__

Callers 2

WrapVec3ArgClass · 0.85
vec3Class · 0.85

Calls 5

v_ldu_p3Function · 0.85
v_ldui_p3Function · 0.85
v_zeroFunction · 0.50
v_zeroiFunction · 0.50
v_cast_vec4fFunction · 0.50

Tested by

no test coverage detected