From f581579137707058a360a37cf325cad9117dad05 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 20 Mar 2022 21:11:18 -0700 Subject: [PATCH] convert inlines into raw inside code blocks raw="true" is invalid and is ignored by ikiwiki, change them all to raw="yes" --- openpower/sv/bitmanip.mdwn | 68 ++++++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 17a652773..061b5fbfb 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -598,7 +598,9 @@ instruction is not provided since the `xor[i]` instruction can be used instead. These are operations on polynomials with coefficients in `GF(2)`, with the polynomial's coefficients packed into integers with the following algorithm: -[[!inline pagenames="openpower/sv/bitmanip/pack_poly.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/pack_poly.py" raw="yes"]] +``` ## Carry-less Multiply Instructions @@ -612,18 +614,24 @@ They are worth adding as their own non-overwrite operations ### `clmul` Carry-less Multiply -[[!inline pagenames="openpower/sv/bitmanip/clmul.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/clmul.py" raw="yes"]] +``` ### `clmulh` Carry-less Multiply High -[[!inline pagenames="openpower/sv/bitmanip/clmulh.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/clmulh.py" raw="yes"]] +``` ### `clmulr` Carry-less Multiply (Reversed) Useful for CRCs. Equivalent to bit-reversing the result of `clmul` on bit-reversed inputs. -[[!inline pagenames="openpower/sv/bitmanip/clmulr.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/clmulr.py" raw="yes"]] +``` ## `clmadd` Carry-less Multiply-Add @@ -668,7 +676,9 @@ c = (RC) `cldivrem` isn't an actual instruction, but is just used in the pseudo-code for other instructions. -[[!inline pagenames="openpower/sv/bitmanip/cldivrem.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/cldivrem.py" raw="yes"]] +``` ## `cldiv` Carry-less Division @@ -723,13 +733,17 @@ the LSB set, since otherwise it would be divisible by the polynomial `x`, making it reducible, making whatever we're working on no longer a Field. Therefore, we can reuse the LSB to indicate `degree == XLEN`. -[[!inline pagenames="openpower/sv/bitmanip/decode_reducing_polynomial.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/decode_reducing_polynomial.py" raw="yes"]] +``` ## `gfbredpoly` -- Set the Reducing Polynomial SPR `GFBREDPOLY` unless this is an immediate op, `mtspr` is completely sufficient. -[[!inline pagenames="openpower/sv/bitmanip/gfbredpoly.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfbredpoly.py" raw="yes"]] +``` ## `gfbmul` -- Binary Galois Field `GF(2^m)` Multiplication @@ -737,7 +751,9 @@ unless this is an immediate op, `mtspr` is completely sufficient. gfbmul RT, RA, RB ``` -[[!inline pagenames="openpower/sv/bitmanip/gfbmul.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfbmul.py" raw="yes"]] +``` ## `gfbmadd` -- Binary Galois Field `GF(2^m)` Multiply-Add @@ -745,7 +761,9 @@ gfbmul RT, RA, RB gfbmadd RT, RA, RB, RC ``` -[[!inline pagenames="openpower/sv/bitmanip/gfbmadd.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfbmadd.py" raw="yes"]] +``` ## `gfbtmadd` -- Binary Galois Field `GF(2^m)` Twin Multiply-Add (for FFT) @@ -775,7 +793,9 @@ c = (RC) gfbinv RT, RA ``` -[[!inline pagenames="openpower/sv/bitmanip/gfbinv.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfbinv.py" raw="yes"]] +``` # Instructions for Prime Galois Fields `GF(p)` @@ -787,7 +807,9 @@ gfbinv RT, RA gfpadd RT, RA, RB ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpadd.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpadd.py" raw="yes"]] +``` the addition happens on infinite-precision integers @@ -797,7 +819,9 @@ the addition happens on infinite-precision integers gfpsub RT, RA, RB ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpsub.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpsub.py" raw="yes"]] +``` the subtraction happens on infinite-precision integers @@ -807,7 +831,9 @@ the subtraction happens on infinite-precision integers gfpmul RT, RA, RB ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpmul.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpmul.py" raw="yes"]] +``` the multiplication happens on infinite-precision integers @@ -820,7 +846,9 @@ gfpinv RT, RA Some potential hardware implementations are found in: -[[!inline pagenames="openpower/sv/bitmanip/gfpinv.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpinv.py" raw="yes"]] +``` ## `gfpmadd` Prime Galois Field `GF(p)` Multiply-Add @@ -828,7 +856,9 @@ Some potential hardware implementations are found in: gfpmadd RT, RA, RB, RC ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpmadd.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpmadd.py" raw="yes"]] +``` the multiplication and addition happens on infinite-precision integers @@ -838,7 +868,9 @@ the multiplication and addition happens on infinite-precision integers gfpmsub RT, RA, RB, RC ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpmsub.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpmsub.py" raw="yes"]] +``` the multiplication and subtraction happens on infinite-precision integers @@ -848,7 +880,9 @@ the multiplication and subtraction happens on infinite-precision integers gfpmsubr RT, RA, RB, RC ``` -[[!inline pagenames="openpower/sv/bitmanip/gfpmsubr.py" raw="true" feeds="no" actions="yes"]] +```python +[[!inline pagenames="openpower/sv/bitmanip/gfpmsubr.py" raw="yes"]] +``` the multiplication and subtraction happens on infinite-precision integers -- 2.30.2