blob: 0a6633dd98ac1698558c9c82c07cdabc2e07c8b8 [file] [log] [blame]
#ifndef SOFTRVV_VFADD_H
#define SOFTRVV_VFADD_H
#include <stddef.h>
namespace softrvv {
void vfadd_vf(float *dest, float *src1, const float *src2, int32_t avl) {
for (int32_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] + *src2;
}
}
void vfadd_vv(float *dest, float *src1, float *src2, int32_t avl) {
for (int32_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] + src2[idx];
}
}
} // namespace softrvv
#endif // SOFTRVV_VFADD_H