Hoa Nguyen has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/33074 )

Change subject: base: Tag API methods in condcodes.hh
......................................................................

base: Tag API methods in condcodes.hh

Change-Id: Ife6b5ed6ee684b65790c374ab6e709ce8eb708ad
Signed-off-by: Hoa Nguyen <hoangu...@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33074
Reviewed-by: Bobby R. Bruce <bbr...@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power...@gmail.com>
Maintainer: Bobby R. Bruce <bbr...@ucdavis.edu>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/base/condcodes.hh
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Bobby R. Bruce: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/base/condcodes.hh b/src/base/condcodes.hh
index 5de2daa..b15fec0 100644
--- a/src/base/condcodes.hh
+++ b/src/base/condcodes.hh
@@ -74,6 +74,8 @@
  *   If we have a carry in, but no carry out:
* src1 and src2 can neither be 1. So the overall result bit is 1. Hence:
  *     ~1 + 0 + 0 => 0. We return false.
+ *
+ * @ingroup api_base_utils
  */
 static inline bool
 findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
@@ -86,6 +88,8 @@

 /**
  * Calculate the overflow flag from an addition.
+ *
+ * @ingroup api_base_utils
  */
 static inline bool
 findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2)
@@ -109,6 +113,8 @@
  *   If the intermediate is still one, then there is exactly one high bit
* which does not have a corresponding high bit. Therefore, the value must
  *   have odd parity, and we return 1 accordingly. Otherwise we return 0.
+ *
+ * @ingroup api_base_utils
  */
 static inline bool
 findParity(int width, uint64_t dest)
@@ -125,6 +131,8 @@

 /**
  * Calculate the negative flag.
+ *
+ * @ingroup api_base_utils
  */
 static inline bool
 findNegative(int width, uint64_t dest)
@@ -134,6 +142,8 @@

 /**
  * Calculate the zero flag.
+ *
+ * @ingroup api_base_utils
  */
 static inline bool
 findZero(int width, uint64_t dest)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/33074
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ife6b5ed6ee684b65790c374ab6e709ce8eb708ad
Gerrit-Change-Number: 33074
Gerrit-PatchSet: 3
Gerrit-Owner: Hoa Nguyen <hoangu...@ucdavis.edu>
Gerrit-Reviewer: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Hoa Nguyen <hoangu...@ucdavis.edu>
Gerrit-Reviewer: Jason Lowe-Power <power...@gmail.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to