blob: 7a4980143af94a41ecd6566f065dcaa2937336b1 [file] [log] [blame]
#ifndef SOFTRVV_VXOR_H
#define SOFTRVV_VXOR_H
#include <stddef.h>
namespace softrvv {
template <typename T>
void vxor_vx(T *dest, T *src1, const T *src2, size_t avl) {
for (size_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] ^ *src2;
}
}
template <typename T>
void vxor_vv(T *dest, T *src1, T *src2, size_t avl) {
for (size_t idx = 0; idx < avl; idx++) {
dest[idx] = src1[idx] ^ src2[idx];
}
}
} // namespace softrvv
#endif // SOFTRVV_VXOR_H