From 26442aee12a431a18591ff7e2c017e8731d633d7 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 19 Feb 2021 19:43:11 +0000 Subject: [PATCH] --- openpower/sv/vector_ops.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openpower/sv/vector_ops.mdwn b/openpower/sv/vector_ops.mdwn index d9e401db7..c954b8ab4 100644 --- a/openpower/sv/vector_ops.mdwn +++ b/openpower/sv/vector_ops.mdwn @@ -264,6 +264,14 @@ used not just for carry lookahead, also a special type of predication mask opera * * `((P|G)+G)^P` +* + + P = (A | B) & Ci + G = (A & B) + +Stackoverflow algorithm `((P|G)+G)^P` works on the cumulated bits of P and G from associated vector units (P and G are integers here). The result of the algorithm is the new carry-in which already includes ripple, one bit of carry per element. + + two versions: scalar int version and CR based version. -- 2.30.2