MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / sign_ext

Method sign_ext

src/dev/mouse.rs:249–252  ·  view source on GitHub ↗
(&self, packet: u8)

Source from the content-addressed store, hash-verified

247 }
248
249 fn sign_ext(&self, packet: u8) -> i16
250 {
251 ((packet as u16) | 0xFF00) as i16
252 }
253
254 fn write_cmd_port(&mut self, value: u8) -> Result<(), &'static str>
255 {

Callers 2

proc_x_movementMethod · 0.80
proc_y_movementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected