MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / addResult

Method addResult

pocs/vdot/q8dot.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 double sum = 0, sumt = 0, sumt2 = 0, maxt = 0;
101 int nloop = 0;
102 void addResult(double s, double t) {
103 sum += s;
104 sumt += t; sumt2 += t*t; maxt = std::max(maxt, t);
105 ++nloop;
106 }
107 void reportResult(const char* title) const {
108 if (nloop < 1) {
109 printf("%s(%s): no result\n",__func__,title);

Callers 1

mainFunction · 0.45

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected