Mercurial > vec
view test/test_benchmark_simple.c @ 40:55cadb1fac4b
*: add mod operation, add GCC vector backend
need to test it with old gcc though. :)
author | Paper <paper@tflc.us> |
---|---|
date | Sun, 27 Apr 2025 02:49:53 -0400 |
parents | 4b5a557aa64f |
children | 7955bed1d169 |
line wrap: on
line source
#include <stdint.h> extern void test_benchmark_sample_minmax_simple_impl(int16_t *smpl, uint32_t length, int32_t *pmin, int32_t *pmax) { int32_t min = *pmin; int32_t max = *pmax; while (length--) { if (*smpl < min) min = *smpl; if (*smpl > max) max = *smpl; smpl++; } *pmin = min; *pmax = max; }