Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public mpf_t(mpf_t op)
 {
     val = mpir.mpf_init_set(op);
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 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);
 }
Esempio n. 10
0
 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);
 }
Esempio n. 11
0
 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;
 }
Esempio n. 12
0
 public static void mpf_clear(mpf_t v)
 {
     int __retval;
     __retval= xmpir_mpf_clear(v.val);
     if( __retval!=0 ) HandleError(__retval);
 }
Esempio n. 13
0
 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;
 }
Esempio n. 14
0
 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);
 }
Esempio n. 15
0
 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);
 }
Esempio n. 16
0
 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);
 }
Esempio n. 17
0
 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;
 }
Esempio n. 18
0
 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;
 }
Esempio n. 19
0
 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;
 }
Esempio n. 20
0
 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);
 }
Esempio n. 21
0
 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;
 }
Esempio n. 22
0
 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);
 }
Esempio n. 23
0
 public mpf_t(mpf_t op)                { val = mpir.mpf_init_set(op);           }