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

extern "C" void inner_loop_104(struct loop_104_data *data) {
    uint32_t *histogram = data->histogram;
    uint64_t histogram_size = data->histogram_size;
    uint8_t *d = data->data;
    int n = data->n;
    for (uint64_t i = 0; i < histogram_size; i++) histogram[i] = 0;
    for (int i = 0; i < n; i++) histogram[d[i]] += 1;
}