65816-llvm-mos/benchmarks/dotProduct.c
Scott Duensing f338d93bae Checkpoint
2026-05-02 18:30:15 -05:00

7 lines
191 B
C

long dotProduct(const short *a, const short *b, unsigned int n) {
long sum = 0;
for (unsigned int i = 0; i < n; i++) {
sum += (long)a[i] * (long)b[i];
}
return sum;
}