// File: kernel.cpp
#include "loop_217.h"
#include <stdint.h>

extern "C" void inner_loop_217(struct loop_217_data *data) {
    uint64_t m = data->m;
    uint64_t n = data->n;
    uint8_t *a = data->a;
    uint8_t *b = data->b;
    uint32_t *c = data->c;
    for (uint64_t y = 0; y < m; y++) {
        uint32_t d = 0;
        for (uint64_t x = 0; x < n; x++) d += (uint32_t)a[y * n + x] * (uint32_t)b[x];
        c[y] = d;
    }
}