zephyr/lib/os
Nicolas Pitre bb7c2e82b1 mempool: remove redundant bit set/clear within loops
When small blocks are recombined to create a single block at a shallower
level, it is sufficient to remove those blocks from the free list. There
is no need to mark those small blocks as allocated in the bitmap.

This, in turn, removes the need to mark small blocks back as unallocated
when splitting up a big blocks as they'll already be so marked.
Only the first small block needs to be marked allocated and the
remaining blocks only need to be added to the free list.

This makes the code smaller and more efficient, especially since those
removed bit manipulations were located within loops.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-10-04 13:42:59 -04:00
..
CMakeLists.txt Bluetooth: Host: Remove printk dependency from settings 2019-09-25 17:36:39 +02:00
Kconfig
assert.c assert: generate oops if invoked from usermode 2019-07-20 08:29:39 -04:00
base64.c
crc7_sw.c
crc8_sw.c
crc16_sw.c
crc32_sw.c
dec.c tests: move util test to be unit tests 2019-09-27 15:23:26 -04:00
fdtable.c
hex.c kernel: lib: Add convert functions for hex strings and binary arrays 2019-07-16 12:44:18 +02:00
json.c
mempool.c mempool: remove redundant bit set/clear within loops 2019-10-04 13:42:59 -04:00
mutex.c kernel: syscalls: Whitespace fixups 2019-09-12 11:31:50 +08:00
printk.c userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00
rb.c
ring_buffer.c
sem.c lib: os: add sys_sem data type 2019-07-24 10:12:25 -07:00
thread_entry.c
timeutil.c lib/timeutil: avoid implementation-defined behavior 2019-09-19 20:49:51 -04:00
work_q.c