Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

square_i32_saturating

Function square_i32_saturating 

Source
pub fn square_i32_saturating(value: i32) -> i32
Expand description

value * value, saturating to i32::MAX when the square would overflow (|value| > 46340, the largest i32 whose square fits).