// File: loop_010.cpp
// Auto-generated by scripts/gen_simd_loop_harness.py — do not hand-edit.
#include "loop_010.h"
#include <cassert>
#include <limits>

extern "C" void inner_loop_010(struct loop_010_data *data);

extern "C" int armbench_entry_loop_010(void *a, int64_t n, void *res_out) {
    if (n < 0 || n > std::numeric_limits<int>::max()) return -1;
    struct loop_010_data data;
    data.a = static_cast<float *>(a);
    data.n = static_cast<uint64_t>(n);
    data.res = 0;
    inner_loop_010(&data);
    *static_cast<int *>(res_out) = data.res;
    return 0;
}