// Multiply returns a * b. // func (context *Context) Multiply(a Quad, b Quad) (r Quad) { var result C.Ret_decQuad_t assert_sane(context) result = C.mdq_multiply(a.val, b.val, context.set) context.set = result.set return Quad{val: result.val} }
// Mul returns a * b. // func (a Quad) Mul(b Quad) Quad { return Quad(C.mdq_multiply(C.struct_Quad(a), C.struct_Quad(b))) }