#ifndef SOFTRVV_VFMIN_H | |
#define SOFTRVV_VFMIN_H | |
#include <stddef.h> | |
namespace softrvv { | |
void vfmin_vf(float *dest, float *src1, const float *src2, int32_t avl) { | |
for (int32_t idx = 0; idx < avl; idx++) { | |
dest[idx] = (src1[idx] < *src2) ? src1[idx] : *src2; | |
} | |
} | |
void vfmin_vv(float *dest, float *src1, float *src2, int32_t avl) { | |
for (int32_t idx = 0; idx < avl; idx++) { | |
dest[idx] = (src1[idx] < src2[idx]) ? src1[idx] : src2[idx]; | |
} | |
} | |
} // namespace softrvv | |
#endif // SOFTRVV_VFMIN_H |