Function __builtin_mul_overflow [src]

Prototype

pub fn __builtin_mul_overflow(a: anytype, b: anytype, result: *@TypeOf(a, b)) c_int

Parameters

result: *@TypeOf(a, b)

Source

pub fn __builtin_mul_overflow(a: anytype, b: anytype, result: *@TypeOf(a, b)) c_int { const res = @mulWithOverflow(a, b); result.* = res[0]; return res[1]; }