From b75f00d87c328907ca4acee3c4954d85e53808f3 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Tue, 4 Jun 2024 08:15:30 +0800 Subject: [PATCH] Fix code of x?vfmin/max --- code/vfmax_d.h | 2 +- code/vfmax_s.h | 2 +- code/vfmin_d.h | 2 +- code/vfmin_s.h | 2 +- code/xvfmax_d.h | 2 +- code/xvfmax_s.h | 2 +- code/xvfmin_d.h | 2 +- code/xvfmin_s.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/vfmax_d.h b/code/vfmax_d.h index fd54ba52..d313153c 100644 --- a/code/vfmax_d.h +++ b/code/vfmax_d.h @@ -1,3 +1,3 @@ for (int i = 0; i < 2; i++) { - dst.fp64[i] = +(a.fp64[i], b.fp64[i]); + dst.fp64[i] = fmax(a.fp64[i], b.fp64[i]); } diff --git a/code/vfmax_s.h b/code/vfmax_s.h index f30ee8f5..fb4c6c10 100644 --- a/code/vfmax_s.h +++ b/code/vfmax_s.h @@ -1,3 +1,3 @@ for (int i = 0; i < 4; i++) { - dst.fp32[i] = +(a.fp32[i], b.fp32[i]); + dst.fp32[i] = fmax(a.fp32[i], b.fp32[i]); } diff --git a/code/vfmin_d.h b/code/vfmin_d.h index fd54ba52..5c807413 100644 --- a/code/vfmin_d.h +++ b/code/vfmin_d.h @@ -1,3 +1,3 @@ for (int i = 0; i < 2; i++) { - dst.fp64[i] = +(a.fp64[i], b.fp64[i]); + dst.fp64[i] = fmin(a.fp64[i], b.fp64[i]); } diff --git a/code/vfmin_s.h b/code/vfmin_s.h index f30ee8f5..0c0bef99 100644 --- a/code/vfmin_s.h +++ b/code/vfmin_s.h @@ -1,3 +1,3 @@ for (int i = 0; i < 4; i++) { - dst.fp32[i] = +(a.fp32[i], b.fp32[i]); + dst.fp32[i] = fmin(a.fp32[i], b.fp32[i]); } diff --git a/code/xvfmax_d.h b/code/xvfmax_d.h index 54c89c71..4a16351a 100644 --- a/code/xvfmax_d.h +++ b/code/xvfmax_d.h @@ -1,3 +1,3 @@ for (int i = 0; i < 4; i++) { - dst.fp64[i] = +(a.fp64[i], b.fp64[i]); + dst.fp64[i] = fmax(a.fp64[i], b.fp64[i]); } diff --git a/code/xvfmax_s.h b/code/xvfmax_s.h index 58023d9c..894b5045 100644 --- a/code/xvfmax_s.h +++ b/code/xvfmax_s.h @@ -1,3 +1,3 @@ for (int i = 0; i < 8; i++) { - dst.fp32[i] = +(a.fp32[i], b.fp32[i]); + dst.fp32[i] = fmax(a.fp32[i], b.fp32[i]); } diff --git a/code/xvfmin_d.h b/code/xvfmin_d.h index 54c89c71..31ba5757 100644 --- a/code/xvfmin_d.h +++ b/code/xvfmin_d.h @@ -1,3 +1,3 @@ for (int i = 0; i < 4; i++) { - dst.fp64[i] = +(a.fp64[i], b.fp64[i]); + dst.fp64[i] = fmin(a.fp64[i], b.fp64[i]); } diff --git a/code/xvfmin_s.h b/code/xvfmin_s.h index 58023d9c..a7eccac5 100644 --- a/code/xvfmin_s.h +++ b/code/xvfmin_s.h @@ -1,3 +1,3 @@ for (int i = 0; i < 8; i++) { - dst.fp32[i] = +(a.fp32[i], b.fp32[i]); + dst.fp32[i] = fmin(a.fp32[i], b.fp32[i]); }