Fix-Point commented on code in PR #17316:
URL: https://github.com/apache/nuttx/pull/17316#discussion_r2520888637


##########
include/nuttx/compiler.h:
##########
@@ -213,6 +220,25 @@
 #  define predict_true(x)  __builtin_expect(!!(x), 1)
 #  define predict_false(x) __builtin_expect(!!(x), 0)

Review Comment:
   Both GCC and Clang support `__attribute__((pure))`,  
`__attribute__((const))` and `__builtin_constant_p(x)`. For `__builtin_assume`, 
GCC implemented this in different way.



-- 
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