#3475: Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch
prediction hints
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  enhancement      |     Status:  assigned
  Priority:  normal           |  Milestone:  5.1
 Component:  score            |    Version:  5
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 Add macros to <rtems/score/basedefs.h> for the GNU extension
 __builtin_expect().  Use RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE()
 similar to the FreeBSD __predict_true() and __predict_false().
 Alternatives are the Linux likely() and unlikely() or directly the GCC
 __builtin_expect(), however, the FreeBSD names seem to be the most easy to
 understand.

--
Ticket URL: <http://devel.rtems.org/ticket/3475>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to