⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

fp_to_i16

Function fp_to_i16 

Source
pub fn fp_to_i16(fp: FixedPoint) -> i16
Expand description

Convert a fixed-point 16.16 value back to signed 16-bit with saturation

Extracts the integer portion (upper 16 bits) and clamps to i16 range.