Skip to main content

fp_32_64_div_32_32

Function fp_32_64_div_32_32 

Source
pub unsafe fn fp_32_64_div_32_32(
    result: NonNull<Fp3264>,
    dividend: u32,
    divisor: u32,
)
Expand description

Computes dividend / divisor as a 32.64 fixed point value, truncating any fraction below the 64th fractional bit, and stores the result into result.

§Panics

Panics if divisor is zero (undefined behaviour in the C original).

§Safety

result must be valid for writes and properly aligned.