Luna/kernel/src/arch/x86_64/Timer.h
apio 1b807a4e06
arch/Timer: Make sure ARCH_TIMER_FREQ is a power of two
(avoid division and modulo, division is slow)
Fortunately, GCC will optimize divisions by powers of two to simple bitwise shifts :)
2023-01-16 19:43:05 +01:00

5 lines
71 B
C

#pragma once
#include <luna/Types.h>
const usize ARCH_TIMER_FREQ = 4;