mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-04-25 19:59:02 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user