From f2ed68d4885478f29f8efed4f62651af9a2b79c7 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 19 Jun 2022 15:40:03 +0100 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index bf4add5cc..214cc2998 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -297,10 +297,10 @@ this will only overwrite the dest where the src is greater (or less). signed/unsigned min/max gives more flexibility. ``` -uint_xlen_t min(uint_xlen_t rs1, uint_xlen_t rs2) +uint_xlen_t mins(uint_xlen_t rs1, uint_xlen_t rs2) { return (int_xlen_t)rs1 < (int_xlen_t)rs2 ? rs1 : rs2; } -uint_xlen_t max(uint_xlen_t rs1, uint_xlen_t rs2) +uint_xlen_t maxs(uint_xlen_t rs1, uint_xlen_t rs2) { return (int_xlen_t)rs1 > (int_xlen_t)rs2 ? rs1 : rs2; } uint_xlen_t minu(uint_xlen_t rs1, uint_xlen_t rs2) -- 2.30.2