From 067fec0b572dea1564a0afc95ac9624466745ef9 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 1 Aug 2021 10:14:31 +0100 Subject: [PATCH] --- openpower/sv/svp64/appendix.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/sv/svp64/appendix.mdwn b/openpower/sv/svp64/appendix.mdwn index a4e81e2d8..168a1995a 100644 --- a/openpower/sv/svp64/appendix.mdwn +++ b/openpower/sv/svp64/appendix.mdwn @@ -741,12 +741,12 @@ For modes: /// `temp_pred` is a user-visible Vector Condition register /// /// all input arrays have length `vl` -pub fn reduce( vl, input_vec, temp_vec, input_pred, temp_pred,): +def reduce( vl, input_vec, temp_vec, input_pred, temp_pred,): for i in 0..vl temp_pred[i] = input_pred[i]; if temp_pred[i] temp_vec[i] = input_vec[i] - mut step = 1; + step = 1; while step < vl step *= 2; for i in (0..vl).step_by(step) -- 2.30.2