MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / FastS16weight4

Function FastS16weight4

src/SB/Core/gc/iMorph.cpp:295–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void FastS16weight4(F32* dest, S16** v_array, S16* weight, S32 count, F32 scale)
296{
297 S32 i;
298 S16* a0 = v_array[0];
299 S16* a1 = v_array[1];
300 S16* a2 = v_array[2];
301 S16* a3 = v_array[3];
302 F32 s0 = scale * weight[0];
303 F32 s1 = scale * weight[1];
304 F32 s2 = scale * weight[2];
305 F32 s3 = scale * weight[3];
306
307 for (i = 0; i < count; ++i)
308 {
309 dest[i] = a0[i] * s0 + a1[i] * s1 + a2[i] * s2 + a3[i] * s3;
310 }
311}

Callers 1

MorphCommonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected