This website requires JavaScript.
Explore
Help
Register
Sign In
apio
/
Luna
Watch
1
Star
1
Fork
0
You've already forked Luna
Code
Issues
Pull Requests
Actions
Projects
Releases
8
Wiki
Activity
9bab4c62a1
Luna
/
kernel
/
src
/
arch
/
x86_64
/
Timer.h
5 lines
71 B
C
Raw
Normal View
History
Unescape
Escape
Make ARCH_PAGE_SIZE and ARCH_TIMER_FREQ known at compile-time
2022-12-05 15:36:41 +00:00
#
pragma once
#
include
<luna/Types.h>
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 18:43:05 +00:00
const
usize
ARCH_TIMER_FREQ
=
4
;
Reference in New Issue
Copy Permalink