zephyr/subsys/testsuite
Chris Friedt 9504034733 sys: util: use BITS_PER_BYTE macro instead of the magic number 8
Obviously, everyone knows that there are 8 bits per byte, so
there isn't a lot of magic happening, per se, but it's also
helpful to clearly denote where the magic number 8 is referring
to the number of bits in a byte.

Occasionally, 8 will refer to a field size or offset in a
structure, MMR, or word. Occasionally, the number 8 will refer
to the number of bytes in a 64-bit value (which should probably
be replaced with `sizeof(uint64_t)`).

For converting bits to bytes, or vice-versa, let's use
`BITS_PER_BYTE` for clarity (or other appropriate `BITS_PER_*`
macros).

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-11-16 15:22:35 -05:00
..
arch unit_testing: Correct one comment refering to native_posix 2024-08-16 09:21:18 +01:00
boards/unit_testing/unit_testing
busy_sim testsuite: busy_sim: Add alarm cancelation to stop function 2024-08-07 19:04:04 -04:00
coverage testsuite: coverage: fix arm64 build with gcov enabled 2024-08-13 14:57:50 +02:00
include/zephyr
soc
ztest sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
CMakeLists.txt testsuite: coverage: fix typo in the CMakeLists.txt 2024-11-01 13:54:14 -05:00
Kconfig
Kconfig.defconfig