From 56f7f1c7ae3e04dca5e7e05884ac32257c29ecd4 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 25 Dec 2020 22:12:45 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index c2e5d1ed0..ef0dc7eab 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -94,3 +94,10 @@ if (shamt & 1) x |= ((x & 0x5555555555555555LL) << 1) | return x; ((x & 0xFFFFFFFF00000000LL) >> 32); ``` + +# cmix + +``` +uint_xlen_t cmix(uint_xlen_t rs1, uint_xlen_t rs2, uint_xlen_t rs3) { return (rs1 & rs2) | (rs3 & ~rs2); +} +``` -- 2.30.2