// Auto-generated file. Do not edit! // Template: src/qu8-rsum/scalar.c.in // Generator: tools/xngen // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include #include "xnnpack/common.h" #include "xnnpack/math.h" #include "xnnpack/reduce.h" void xnn_qu8_rsum_ukernel__scalar_u1( size_t batch, const uint8_t* restrict input, uint32_t* restrict output, const struct xnn_qs8_rsum_params params[restrict XNN_MIN_ELEMENTS(1)]) { assert(batch != 0); assert(input != NULL); assert(output != NULL); assert(params != NULL); uint32_t vacc0 = 0; do { const uint32_t vt = (uint32_t) *input++; vacc0 += vt; batch -= sizeof(uint8_t); } while (batch != 0); *output += vacc0; }