Example #1
0
// FromInt32 returns a Quad from a int32 value.
//
// No error should occur, and context status will not change.
//
func (context *Context) FromInt32(value int32) (r Quad) {
	var result C.Ret_decQuad_t
	assert_sane(context)

	result = C.mdq_from_int32(C.int32_t(value), context.set)

	context.set = result.set
	return Quad{val: result.val}
}
Example #2
0
// FromInt32 returns a Quad from a int32 value.
//
// No error occurs.
//
func FromInt32(value int32) Quad {

	return Quad(C.mdq_from_int32(C.int32_t(value)))
}