zephyr/tests/kernel/common/src
Johan Hedberg e405fc41f2 atomic: Add atomic_set_bit_to() API
Several places in the code have constructions like this:

	if (bool_variable) {
		atomic_set_bit(flags, FLAG);
	} else {
		atomic_clear_bit(flags, FLAG);
	}

To reduce the amount of code for such situations, introduce a new
atomic_set_bit_to() helper which lets you condense the above five
lines to a single one:

	atomic_set_bit_to(flags, FLAG, bool_variable);

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2019-01-25 17:35:44 -05:00
..
atomic.c atomic: Add atomic_set_bit_to() API 2019-01-25 17:35:44 -05:00
bitfield.c tests: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
byteorder.c tests: kernel: Add description for common and interrrupt 2018-07-18 06:52:18 -04:00
clock.c tests: kernel: common: Bugfix for POSIX arch in TICKLESS 2018-11-13 09:19:03 -05:00
dlist.c sys: dlist: Add sys_dnode_is_linked 2019-01-23 20:46:49 +01:00
intmath.c tests: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
main.c tests: kernel: Add description for common and interrrupt 2018-07-18 06:52:18 -04:00
multilib.c tests: kernel: Add description for common and interrrupt 2018-07-18 06:52:18 -04:00
printk.c printk: don't print incorrect 64-bit integers 2019-01-18 08:23:15 -08:00
slist.c tests: kernel: Add description for common and interrrupt 2018-07-18 06:52:18 -04:00
timeout_order.c tests: kernel: common: Bugfix for POSIX arch in TICKLESS 2018-11-13 09:19:03 -05:00