Remove micromath dependency, improve primitive drawing speed by 300x,

add mouse support and interrupts on x86_64 using a ps2 mouse which
needed pic unmasking, add span filling to framebuffer, add back
without_interrupts to serial console and framebuffer, add a mouse
rectangle which tracks the mouse position and test the performance of
the drawing.
This commit is contained in:
csd4ni3l
2026-03-29 14:38:43 +02:00
parent aa5cd85b48
commit 3ef95940a7
13 changed files with 494 additions and 56 deletions

View File

@@ -42,3 +42,7 @@ pub fn test_performance<F: FnOnce()>(function: F) {
println!("took {} ms", (TIMER.now() - start).elapsed());
ret
}
pub fn get_bit(value: u8, position: u8) -> u8 {
(value >> position) & 1
}