Skip to content

Instantly share code, notes, and snippets.

@rurban
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurban/08084967f8ea5762d6de to your computer and use it in GitHub Desktop.
Save rurban/08084967f8ea5762d6de to your computer and use it in GitHub Desktop.
acos
static void
Parrot_Float_nci_acos(PARROT_INTERP, ARGMOD(PMC *_self))
{
PMC * const _ctx = CURRENT_CONTEXT(interp);
PMC * const _call_object = Parrot_pcc_get_signature(interp, _ctx);
{ /* BEGIN PARMS SCOPE */
/* Parrot_pcc_fill_params_from_c_args(interp, _call_object, "Pi",
&_self); */
_self = VTABLE_get_pmc_keyed_int(interp, _call_object, 0);
{ /* BEGIN PMETHOD BODY */
#line 505 "./src/pmc/float.pmc"
PMC * const d = Parrot_pmc_new(interp, VTABLE_type(interp, _self));
SETATTR_Float_fv(interp, d, acos(_self->vtable->get_number(interp, _self)));
#line 510 "./src/pmc/float.c"
{ /*BEGIN RETURN PMC *d */
VTABLE_set_pmc_keyed_int(interp, _call_object, 0, (PMC*)d);
/*Parrot_pcc_set_call_from_c_args(interp, _call_object,
"P", (PMC*)d);*/
return;
} /*END RETURN PMC *d */
#line 508 "./src/pmc/float.pmc"
#line 519 "./src/pmc/float.c"
} /* END PMETHOD BODY */
} /* END PARAMS SCOPE */
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment