zephyr/subsys/testsuite/ztest/src
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
..
ztest_defaults.c
ztest_error_hook.c
ztest_mock.c sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
ztest_posix.c
ztest_rules.c
ztest_shell.c ztest: shell: Fix compilation error for NEWLIB_LIBC 2024-07-27 15:08:14 +03:00
ztest.c Ztest: Including the missing C standard library header 2024-10-08 06:00:45 -04:00
ztress.c testsuite: ztest: ztress: Add missing static keywords 2024-06-07 18:08:22 +01:00