casaroli commented on code in PR #21156:
URL: https://github.com/apache/nuttx/pull/21156#discussion_r4422455899


##########
mm/mm_gran/mm_grantable.c:
##########
@@ -124,6 +124,53 @@ static void gran_set_(gran_t *gran, gatr_t *rang, bool val)
   return;
 }
 
+/* Return the index of the lowest set bit of a non-zero GAT cell value.
+ * An int can have 16 bits: use the long form of the builtin.
+ */
+
+static uint32_t cell_ctz(uint32_t v)
+{
+#ifdef CONFIG_HAVE_BUILTIN_CTZ
+  return __builtin_ctzl(v);

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to