From 51678e6ca5f4c92cd56ce17a92bb949df3711035 Mon Sep 17 00:00:00 2001 From: lkcl Date: Mon, 25 Jan 2021 15:24:18 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 156fb2b53..16e7cda94 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -428,6 +428,21 @@ uint_xlen_t clmulr(uint_xlen_t RA, uint_xlen_t RB) ``` # Galois Field Multiply +this requires 3 parameters and a "degree" + + RT = GFMUL(RA, RB, gfdegree, modulo=RC) + +realistically with the degree also needing to be an immediate it should be brought down to an overwrite version: + + RS = GFMUL(RS, RA, gfdegree, modulo=RB) + +| 0.5|6.10|11.15|16.20|21.25| 26..30 |31| +| -- | -- | --- | --- | --- | ------- |--| +| NN | RS | RA | RB | deg | | | + +where the SimpleV variant may override RS-as-src differently from RS-as-dest + + ``` from functools import reduce -- 2.30.2