blob: 1a2b00e33f26776f4f68641a3022b42e87fb1ee3 [file] [log] [blame]
#ifndef SOFTRVV_VREM_H
#define SOFTRVV_VREM_H
#include <stddef.h>
namespace softrvv {
template <typename T>
void vrem_vx(T *dest, T *src1, const T *src2, int32_t avl) {
for (int32_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] % *src2;
}
}
template <typename T>
void vrem_vv(T *dest, T *src1, T *src2, int32_t avl) {
for (int32_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] % src2[idx];
}
}
} // namespace softrvv
#endif // SOFTRVV_VREM_H