From: lkcl Date: Sun, 19 Jun 2022 14:40:03 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2ed68d4885478f29f8efed4f62651af9a2b79c7;p=libreriscv.git --- 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)