Function spirv_std::arch::s_rem_vector[][src]

pub fn s_rem_vector<I, V, const LEN: usize>(x: V, y: V) -> V where
    I: SignedInteger,
    V: Vector<I, LEN>, 

Signed-integer remainder operation for getting the remainder from x / y whose sign matches the sign of x.

Safety

Behavior is undefined if y is 0, or if y is -1 and x is the minimum representable value for the type, causing signed overflow.