Method: MPFI::Math.exp2
- Defined in:
- ext/mpfi/ruby_mpfi.c
.exp2 ⇒ Object
mpfi_exp2(ret, p1)
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 |
# File 'ext/mpfi/ruby_mpfi.c', line 1345
static VALUE r_mpfi_math_exp2 (int argc, VALUE *argv, VALUE self)
{
MPFI *ptr_a0, *ptr_ret;
VALUE val_ret;
volatile VALUE tmp_argv0 = r_mpfi_new_fi_obj(argv[0]);
r_mpfi_get_struct(ptr_a0, tmp_argv0);
r_mpfi_make_struct_init2(val_ret, ptr_ret, r_mpfr_prec_from_optional_argument(1, 2, argc, argv));
r_mpfi_set_function_state(mpfi_exp2(ptr_ret, ptr_a0));
return val_ret;
}
|