#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           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------
Description changed by Sebastian Huber:

Old description:

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

New description:

 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#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to