Generated by Cython 0.19.1 on Sun Sep 22 21:02:07 2013
Raw output: _home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.c
1:
2: include "interrupt.pxi" # ctrl-c interrupt block support
3: include "stdsage.pxi" # ctrl-c interrupt block support
4:
5: include "cdefs.pxi"
6: cdef extern from "math.h":
7: double modf(double value, double* iptr)
8:
9: def py_modf(x):
/* "_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.pyx":9 * double modf(double value, double* iptr) * * def py_modf(x): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef double iptr * cdef double result = modf(x, &iptr) */ static PyObject *__pyx_pf_72_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0_py_modf(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x) { double __pyx_v_iptr; double __pyx_v_result; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("py_modf", 0); /* "_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.pyx":9 * double modf(double value, double* iptr) * * def py_modf(x): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef double iptr * cdef double result = modf(x, &iptr) */ __pyx_k_tuple_2 = PyTuple_Pack(3, ((PyObject *)__pyx_n_s__x), ((PyObject *)__pyx_n_s__iptr), ((PyObject *)__pyx_n_s__result)); if (unlikely(!__pyx_k_tuple_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_2); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_2)); /* "_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.pyx":9 * double modf(double value, double* iptr) * * def py_modf(x): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* cdef double iptr * cdef double result = modf(x, &iptr) */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_72_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0_1py_modf, NULL, __pyx_n_s_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s__py_modf, __pyx_t_1)<
0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10: cdef double iptr
11: cdef double result = modf(x, &iptr)
/* "_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.pyx":11 * def py_modf(x): * cdef double iptr * cdef double result = modf(x, &iptr) #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* return (result, iptr) */ __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_x); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_result = modf(__pyx_t_1, (&__pyx_v_iptr));
12: return (result, iptr)
/* "_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.pyx":12 * cdef double iptr * cdef double result = modf(x, &iptr) * return (result, iptr) #<
<
<
<
<
<
<
<
<
<
<
<
<
<
*/ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyFloat_FromDouble(__pyx_v_result); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyFloat_FromDouble(__pyx_v_iptr); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("_home_vbraun__sage_sage_notebook_sagenb_home_admin_16_code_sage75_spyx_0.py_modf", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }