MCPcopy Create free account
hub / github.com/WheretIB/nullc / test2

Function test2

tests/TestClasses.cpp:154–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152"//Complex types test #3\r\n\
153import std.math;\r\n\
154float test(float4 a, float4 b){ return a.x*b.x+a.y*b.y+a.z*b.z+a.w*b.w; }\r\n\
155float4 test2(float4 u){ u.x += 5.0; return u; }\r\n\
156float4 float4(float all){ float4 ret; ret.x = ret.y = ret.z = ret.w = all; return ret; }\r\n\
157float sum(float[10] u){ float res = 0; for(int i = 0; i < 10; i++) res += u[i]; return res; }\r\n\
158float[10] inc(float[10] v){ float[10] res; for(int i = 0; i < 10; i++) res[i] = v[i]+1.0f; return res; }\r\n\

Callers 1

TestClasses.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected