From a1f7d7d430466fe66ead3155a9015ddde237fd44 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 Jul 2018 09:00:18 +0200 Subject: score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE() Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch prediction hints. Close #3475. --- cpukit/score/src/futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/futex.c') diff --git a/cpukit/score/src/futex.c b/cpukit/score/src/futex.c index 6487882819..f32a13c449 100644 --- a/cpukit/score/src/futex.c +++ b/cpukit/score/src/futex.c @@ -151,7 +151,7 @@ int _Futex_Wake( struct _Futex_Control *_futex, int count ) * called in the fast path. Normally there are no threads on the queue, so * check this condition early. */ - if ( __predict_true( _Thread_queue_Is_empty( &futex->Queue.Queue ) ) ) { + if ( RTEMS_PREDICT_TRUE( _Thread_queue_Is_empty( &futex->Queue.Queue ) ) ) { _Futex_Queue_release( futex, level, &context.Base ); return 0; } -- cgit v1.2.3