Changeset 388 for python/vendor/current/Include/longobject.h
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Include/longobject.h
r2 r388 22 22 PyAPI_FUNC(PyObject *) PyLong_FromSsize_t(Py_ssize_t); 23 23 PyAPI_FUNC(long) PyLong_AsLong(PyObject *); 24 PyAPI_FUNC(long) PyLong_AsLongAndOverflow(PyObject *, int *); 24 25 PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLong(PyObject *); 25 26 PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongMask(PyObject *); 26 27 PyAPI_FUNC(Py_ssize_t) PyLong_AsSsize_t(PyObject *); 28 PyAPI_FUNC(int) _PyLong_AsInt(PyObject *); 29 PyAPI_FUNC(PyObject *) PyLong_GetInfo(void); 27 30 28 31 /* For use by intobject.c only */ … … 32 35 PyAPI_DATA(int) _PyLong_DigitValue[256]; 33 36 34 /* _PyLong_ AsScaledDouble returns a double x and an exponent e such that35 t he true value is approximately equal to x * 2**(SHIFT*e). e is >= 0.36 x is0.0 if and only if the input is 0 (in which case, e and x are both37 zeroes) . Overflow is impossible. Note that the exponent returned must38 be multiplied by SHIFT! There may not be enough room in an int to store39 e*SHIFT directly. */40 PyAPI_FUNC(double) _PyLong_ AsScaledDouble(PyObject *vv, int *e);37 /* _PyLong_Frexp returns a double x and an exponent e such that the 38 true value is approximately equal to x * 2**e. e is >= 0. x is 39 0.0 if and only if the input is 0 (in which case, e and x are both 40 zeroes); otherwise, 0.5 <= abs(x) < 1.0. On overflow, which is 41 possible if the number of bits doesn't fit into a Py_ssize_t, sets 42 OverflowError and returns -1.0 for x, 0 for e. */ 43 PyAPI_FUNC(double) _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e); 41 44 42 45 PyAPI_FUNC(double) PyLong_AsDouble(PyObject *); … … 50 53 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *); 51 54 PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *); 55 PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *); 52 56 #endif /* HAVE_LONG_LONG */ 53 57
Note:
See TracChangeset
for help on using the changeset viewer.