zephyr/include/misc
Andy Ross eda4c027da misc/dlist: Swap insertion API for a faster one
The sys_dlist_insert_*() functions had a behavior where a NULL
argument for the insertion position to sys_dlist_insert_after/before()
was interpreted as "the end of the list".  We never used that
convention (except in one spot internal to dlist.h which was not
itself used anywhere), and of course already have an API for appending
and prepending to a list.

In practice this was a performance disaster.  The NULL check is
virtually never provable statically by the compiler, so that test and
branch is present always.  And worse, the check and call to another
function was pushing this beyond the complexity limit for gcc to
inline a function (at -Os optimization anyway), forcing us to use
function calls for what should be a ~8 instruction sequence.  The
upshot is that dlist insertions were 2-3x slower than they needed to
be.

Deprecate these older APIs and introduce a new sys_dlist_insert() call
which can be much better optimized.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-02-01 15:57:21 -05:00
..
__assert.h include: __assert: Fix output formatting of __ASSERT_NO_MSG() 2018-12-05 11:21:51 +01:00
byteorder.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
dlist.h misc/dlist: Swap insertion API for a faster one 2019-02-01 15:57:21 -05:00
errno_private.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
fdtable.h lib: fdtable: Change ioctl vmethod signature to take va_list 2018-12-14 13:21:31 +02:00
gcov.h tests: coverage: Add Gcov support. 2019-01-16 06:12:33 -05:00
libc-hooks.h libc: newlib: libc-hooks: Consistently use const void* as arg to write 2018-10-22 15:01:12 +01:00
list_gen.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
mempool_base.h misc: mempool: Using distinct macro identifiers 2018-10-31 19:43:47 -04:00
mempool.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
printk.h printk: don't print incorrect 64-bit integers 2019-01-18 08:23:15 -08:00
rb.h misc: rb: Make an evaluation a boolean expression 2018-11-30 08:05:11 -08:00
reboot.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
ring_buffer.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
sflist.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
slist.h include: misc: list_gen: Fix possible undefined behavior 2018-12-07 09:06:34 -05:00
stack.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
util.h logging: Replace custom macros with generic ones from util.h 2019-01-24 08:40:01 -05:00