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

square_unshifted

Function square_unshifted 

Source
pub unsafe fn square_unshifted()
Expand description

Square the current IR vector into MAC1/2/3 without the fractional right shift (SQR, sf=0).

This form is useful for integer vector lengths: the MAC registers retain the exact component squares while the CPU prepares a reciprocal scale.

§Safety

IR1, IR2 and IR3 must contain the vector to square.