From: lkcl Date: Fri, 25 Dec 2020 22:12:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~879 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56f7f1c7ae3e04dca5e7e05884ac32257c29ecd4;p=libreriscv.git --- 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); +} +```