Re: [PATCH 1/2] score: Add and use _RBTree_Find_inline()

2016-04-03 Thread Gedare Bloom
On Thu, Mar 31, 2016 at 7:57 AM, Sebastian Huber wrote: > --- > cpukit/posix/include/rtems/posix/keyimpl.h | 54 > ++ > cpukit/score/include/rtems/score/rbtree.h | 41 +++ > 2 files changed, 73 insertions(+), 22 deletions(-) > > diff --git a/cpuki

Re: [PATCH 1/2] score: Add and use _RBTree_Find_inline()

2016-03-31 Thread Sebastian Huber
On 31/03/16 15:29, Gedare Bloom wrote: +RTEMS_INLINE_ROUTINE bool _POSIX_Keys_Key_value_find_less( Patch looks fine. I was just curious, does the compiler actually inline this too when it is called through a function pointer? Its good that you asked. In general GCC is quite good at optimizin

[PATCH 1/2] score: Add and use _RBTree_Find_inline()

2016-03-31 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/keyimpl.h | 54 ++ cpukit/score/include/rtems/score/rbtree.h | 41 +++ 2 files changed, 73 insertions(+), 22 deletions(-) diff --git a/cpukit/posix/include/rtems/posix/keyimpl.h b/cpukit/posix/include/rtems/pos