summaryrefslogtreecommitdiffstats
path: root/Include/cpython/longintrepr.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/longintrepr.h')
-rw-r--r--Include/cpython/longintrepr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/cpython/longintrepr.h b/Include/cpython/longintrepr.h
index fb82f83..f5ccbb7 100644
--- a/Include/cpython/longintrepr.h
+++ b/Include/cpython/longintrepr.h
@@ -89,6 +89,16 @@ struct _longobject {
_PyLongValue long_value;
};
+PyAPI_FUNC(PyLongObject*) _PyLong_New(Py_ssize_t);
+
+// Return a copy of src.
+PyAPI_FUNC(PyObject*) _PyLong_Copy(PyLongObject *src);
+
+PyAPI_FUNC(PyLongObject*) _PyLong_FromDigits(
+ int negative,
+ Py_ssize_t digit_count,
+ digit *digits);
+
/* Inline some internals for speed. These should be in pycore_long.h
* if user code didn't need them inlined. */