public static void mpq_neg(mpq_t negated_operand, mpq_t operand) { int __retval; __retval= xmpir_mpq_neg(negated_operand.val, operand.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_inv(mpq_t inverted_number, mpq_t number) { int __retval; __retval= xmpir_mpq_inv(inverted_number.val, number.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_div(mpq_t quotient, mpq_t dividend, mpq_t divisor) { int __retval; __retval= xmpir_mpq_div(quotient.val, dividend.val, divisor.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_div_2exp(mpq_t rop, mpq_t op1, ulong op2) { int __retval; __retval= xmpir_mpq_div_2exp(rop.val, op1.val, op2); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_set_den(mpq_t rational, mpz_t denominator) { int __retval; __retval= xmpir_mpq_set_den(rational.val, denominator.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_canonicalize(mpq_t op) { int __retval; __retval= xmpir_mpq_canonicalize(op.val); if( __retval!=0 ) HandleError(__retval); }
public static string mpq_get_string(uint _base, mpq_t op) { int __retval; string result; IntPtr __result; __retval= xmpir_mpq_get_string(out __result, _base, op.val); if( __retval!=0 ) HandleError(__retval); result = Marshal.PtrToStringAnsi(__result); __retval = xmpir_free(__result); if( __retval!=0 ) HandleError(__retval); return result; }
public static int mpq_equal(mpq_t op1, mpq_t op2) { int __retval; int result; __retval= xmpir_mpq_equal(out result, op1.val, op2.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static double mpq_get_d(mpq_t op) { int __retval; double result; __retval= xmpir_mpq_get_d(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpq_set_d(mpq_t rop, double op) { int __retval; __retval= xmpir_mpq_set_d(rop.val, op); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_swap(mpq_t rop1, mpq_t rop2) { int __retval; __retval= xmpir_mpq_swap(rop1.val, rop2.val); if( __retval!=0 ) HandleError(__retval); }
public static int mpq_set_str(mpq_t rop, string str, uint _base) { int __retval; int result; byte[] __ba_str = System.Text.Encoding.UTF8.GetBytes(str+"\0"); IntPtr __str; __retval = xmpir_malloc(out __str, str.Length+1); if( __retval!=0 ) HandleError(__retval); Marshal.Copy(__ba_str, 0, __str, str.Length+1); __retval= xmpir_mpq_set_str(out result, rop.val, __str, _base); if( __retval!=0 ) HandleError(__retval); __retval = xmpir_free(__str); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpq_set_si(mpq_t rop, int op1, uint op2) { int __retval; __retval= xmpir_mpq_set_si(rop.val, op1, op2); if( __retval!=0 ) HandleError(__retval); }
public static int mpq_cmp_si(mpq_t op1, int num2, uint den2) { int __retval; int result; __retval= xmpir_mpq_cmp_si(out result, op1.val, num2, den2); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpq_add(mpq_t sum, mpq_t addend1, mpq_t addend2) { int __retval; __retval= xmpir_mpq_add(sum.val, addend1.val, addend2.val); if( __retval!=0 ) HandleError(__retval); }
public static int mpq_sgn(mpq_t op) { int __retval; int result; __retval= xmpir_mpq_sgn(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpq_sub(mpq_t difference, mpq_t minuend, mpq_t subtrahend) { int __retval; __retval= xmpir_mpq_sub(difference.val, minuend.val, subtrahend.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_set_num(mpq_t rational, mpz_t numerator) { int __retval; __retval= xmpir_mpq_set_num(rational.val, numerator.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_mul(mpq_t product, mpq_t multiplier, mpq_t multiplicand) { int __retval; __retval= xmpir_mpq_mul(product.val, multiplier.val, multiplicand.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpf_set_q(mpf_t rop, mpq_t op) { int __retval; __retval= xmpir_mpf_set_q(rop.val, op.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpq_clear(mpq_t v) { int __retval; __retval= xmpir_mpq_clear(v.val); if( __retval!=0 ) HandleError(__retval); }