#ifndef SOFTRVV_VFMAX_H
#define SOFTRVV_VFMAX_H

#include <stddef.h>

namespace softrvv {

void vfmax_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 vfmax_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_VFMAX_H
