public static void mpf_ui_div(mpf_t rop, uint op1, mpf_t op2) { int __retval; __retval= xmpir_mpf_ui_div(rop.val, op1, op2.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpf_sqrt_ui(mpf_t rop, uint op) { int __retval; __retval= xmpir_mpf_sqrt_ui(rop.val, op); if( __retval!=0 ) HandleError(__retval); }
public mpf_t(mpf_t op) { val = mpir.mpf_init_set(op); }
public static string mpf_get_string(out long expptr, uint _base, uint n_digits, mpf_t op) { int __retval; string result; IntPtr __result; __retval= xmpir_mpf_get_string(out __result, out expptr, _base, n_digits, op.val); if( __retval!=0 ) HandleError(__retval); result = Marshal.PtrToStringAnsi(__result); __retval = xmpir_free(__result); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_reldiff(mpf_t rop, mpf_t op1, mpf_t op2) { int __retval; __retval= xmpir_mpf_reldiff(rop.val, op1.val, op2.val); if( __retval!=0 ) HandleError(__retval); }
public static int mpf_fits_sint_p(mpf_t op) { int __retval; int result; __retval= xmpir_mpf_fits_sint_p(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static int mpf_set_str(mpf_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_mpf_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 int mpf_cmp_si(mpf_t op1, int op2) { int __retval; int result; __retval= xmpir_mpf_cmp_si(out result, op1.val, op2); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_set_prec(mpf_t rop, ulong prec) { int __retval; __retval= xmpir_mpf_set_prec(rop.val, prec); if( __retval!=0 ) HandleError(__retval); }
public static void mpf_set_d(mpf_t rop, double op) { int __retval; __retval= xmpir_mpf_set_d(rop.val, op); if( __retval!=0 ) HandleError(__retval); }
public static ulong mpf_get_prec(mpf_t op) { int __retval; ulong result; __retval= xmpir_mpf_get_prec(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_clear(mpf_t v) { int __retval; __retval= xmpir_mpf_clear(v.val); if( __retval!=0 ) HandleError(__retval); }
public static mpf_intptr mpf_init_set(mpf_t op) { int __retval; mpf_intptr result; __retval= xmpir_mpf_init_set(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_pow_ui(mpf_t rop, mpf_t op1, uint op2) { int __retval; __retval= xmpir_mpf_pow_ui(rop.val, op1.val, op2); if( __retval!=0 ) HandleError(__retval); }
public static void mpf_swap(mpf_t rop1, mpf_t rop2) { int __retval; __retval= xmpir_mpf_swap(rop1.val, rop2.val); if( __retval!=0 ) HandleError(__retval); }
public static void mpf_div_2exp(mpf_t rop, mpf_t op1, ulong op2) { int __retval; __retval= xmpir_mpf_div_2exp(rop.val, op1.val, op2); if( __retval!=0 ) HandleError(__retval); }
public static double mpf_get_d(mpf_t op) { int __retval; double result; __retval= xmpir_mpf_get_d(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static int mpf_eq(mpf_t op1, mpf_t op2, ulong op3) { int __retval; int result; __retval= xmpir_mpf_eq(out result, op1.val, op2.val, op3); if( __retval!=0 ) HandleError(__retval); return result; }
public static double mpf_get_d_2exp(out long expptr, mpf_t op) { int __retval; double result; __retval= xmpir_mpf_get_d_2exp(out result, out expptr, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_trunc(mpf_t rop, mpf_t op) { int __retval; __retval= xmpir_mpf_trunc(rop.val, op.val); if( __retval!=0 ) HandleError(__retval); }
public static uint mpf_get_ui(mpf_t op) { int __retval; uint result; __retval= xmpir_mpf_get_ui(out result, op.val); if( __retval!=0 ) HandleError(__retval); return result; }
public static void mpf_urandomb(mpf_t rop, gmp_randstate_t state, ulong nbits) { int __retval; __retval= xmpir_mpf_urandomb(rop.val, state.val, nbits); if( __retval!=0 ) HandleError(__retval); }