Generated by Cython 0.13 on Fri Apr 15 12:41:14 2011
Raw output: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.c
1:
2: include "interrupt.pxi" # ctrl-c interrupt block support
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.pyx":2 * * include "interrupt.pxi" # ctrl-c interrupt block support #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* include "stdsage.pxi" # ctrl-c interrupt block support * */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1))<
0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
3: include "stdsage.pxi" # ctrl-c interrupt block support
4:
5: include "cdefs.pxi"
6: cdef extern from "math.h":
7: long int round "lround"(double)
8:
9: def f(double n):
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.pyx":9 * long int round "lround"(double) * * def f(double n): #<
<
<
<
<
<
<
<
<
<
<
<
<
<
* return round(n) */ static PyObject *__pyx_pf_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0_f(PyObject *__pyx_self, PyObject *__pyx_arg_n); /*proto*/ static char __pyx_doc_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0_f[] = "File: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.pyx (starting at line 9)"; static PyObject *__pyx_pf_77_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0_f(PyObject *__pyx_self, PyObject *__pyx_arg_n) { double __pyx_v_n; PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("f"); __pyx_self = __pyx_self; assert(__pyx_arg_n); { __pyx_v_n = __pyx_PyFloat_AsDouble(__pyx_arg_n); if (unlikely((__pyx_v_n == (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.f"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:;
10: return round(n)
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.pyx":10 * * def f(double n): * return round(n) #<
<
<
<
<
<
<
<
<
<
<
<
<
<
*/ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyInt_FromLong(lround(__pyx_v_n)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage4_spyx_0.f"); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }