9504034733
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> |
||
---|---|---|
.. | ||
include | ||
paging | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.device | ||
Kconfig.init | ||
Kconfig.mem_domain | ||
Kconfig.obj_core | ||
Kconfig.smp | ||
Kconfig.vm | ||
atomic_c.c | ||
banner.c | ||
busy_wait.c | ||
compiler_stack_protect.c | ||
condvar.c | ||
cpu_mask.c | ||
device.c | ||
dynamic.c | ||
dynamic_disabled.c | ||
errno.c | ||
events.c | ||
fatal.c | ||
float.c | ||
futex.c | ||
idle.c | ||
init.c | ||
init_static.c | ||
ipi.c | ||
irq_offload.c | ||
kheap.c | ||
mailbox.c | ||
main_weak.c | ||
mem_domain.c | ||
mem_slab.c | ||
mempool.c | ||
mmu.c | ||
msg_q.c | ||
mutex.c | ||
nothread.c | ||
obj_core.c | ||
pipes.c | ||
poll.c | ||
priority_queues.c | ||
queue.c | ||
sched.c | ||
sem.c | ||
smp.c | ||
spinlock_validate.c | ||
stack.c | ||
system_work_q.c | ||
thread.c | ||
thread_monitor.c | ||
timeout.c | ||
timer.c | ||
timeslicing.c | ||
usage.c | ||
userspace.c | ||
userspace_handler.c | ||
version.c | ||
work.c | ||
xip.c |