summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Include/cpython/floatobject.h
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-03-05 10:40:59 +0100
committerGitHub <[email protected]>2024-03-05 12:40:59 +0300
commit1ac13c847b5358faba44dbb638a828e24369467b (patch)
tree07672b4dd3604ad3dee540a02c6494cb7d10dc3d /contrib/tools/python3/src/Include/cpython/floatobject.h
parentffcca3e7f7958ddc6487b91d3df8c01054bd0638 (diff)
Library import 16 (#2433)
Co-authored-by: robot-piglet <[email protected]> Co-authored-by: deshevoy <[email protected]> Co-authored-by: robot-contrib <[email protected]> Co-authored-by: thegeorg <[email protected]> Co-authored-by: robot-ya-builder <[email protected]> Co-authored-by: svidyuk <[email protected]> Co-authored-by: shadchin <[email protected]> Co-authored-by: robot-ratatosk <[email protected]> Co-authored-by: innokentii <[email protected]> Co-authored-by: arkady-e1ppa <[email protected]> Co-authored-by: snermolaev <[email protected]> Co-authored-by: dimdim11 <[email protected]> Co-authored-by: kickbutt <[email protected]> Co-authored-by: abdullinsaid <[email protected]> Co-authored-by: korsunandrei <[email protected]> Co-authored-by: petrk <[email protected]> Co-authored-by: miroslav2 <[email protected]> Co-authored-by: serjflint <[email protected]> Co-authored-by: akhropov <[email protected]> Co-authored-by: prettyboy <[email protected]> Co-authored-by: ilikepugs <[email protected]> Co-authored-by: hiddenpath <[email protected]> Co-authored-by: mikhnenko <[email protected]> Co-authored-by: spreis <[email protected]> Co-authored-by: andreyshspb <[email protected]> Co-authored-by: dimaandreev <[email protected]> Co-authored-by: rashid <[email protected]> Co-authored-by: robot-ydb-importer <[email protected]> Co-authored-by: r-vetrov <[email protected]> Co-authored-by: ypodlesov <[email protected]> Co-authored-by: zaverden <[email protected]> Co-authored-by: vpozdyayev <[email protected]> Co-authored-by: robot-cozmo <[email protected]> Co-authored-by: v-korovin <[email protected]> Co-authored-by: arikon <[email protected]> Co-authored-by: khoden <[email protected]> Co-authored-by: psydmm <[email protected]> Co-authored-by: robot-javacom <[email protected]> Co-authored-by: dtorilov <[email protected]> Co-authored-by: sennikovmv <[email protected]> Co-authored-by: hcpp <[email protected]>
Diffstat (limited to 'contrib/tools/python3/src/Include/cpython/floatobject.h')
-rw-r--r--contrib/tools/python3/src/Include/cpython/floatobject.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/tools/python3/src/Include/cpython/floatobject.h b/contrib/tools/python3/src/Include/cpython/floatobject.h
deleted file mode 100644
index 127093098bf..00000000000
--- a/contrib/tools/python3/src/Include/cpython/floatobject.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef Py_CPYTHON_FLOATOBJECT_H
-# error "this header file must not be included directly"
-#endif
-
-typedef struct {
- PyObject_HEAD
- double ob_fval;
-} PyFloatObject;
-
-#define _PyFloat_CAST(op) \
- (assert(PyFloat_Check(op)), _Py_CAST(PyFloatObject*, op))
-
-// Static inline version of PyFloat_AsDouble() trading safety for speed.
-// It doesn't check if op is a double object.
-static inline double PyFloat_AS_DOUBLE(PyObject *op) {
- return _PyFloat_CAST(op)->ob_fval;
-}
-#define PyFloat_AS_DOUBLE(op) PyFloat_AS_DOUBLE(_PyObject_CAST(op))
-
-
-PyAPI_FUNC(int) PyFloat_Pack2(double x, char *p, int le);
-PyAPI_FUNC(int) PyFloat_Pack4(double x, char *p, int le);
-PyAPI_FUNC(int) PyFloat_Pack8(double x, char *p, int le);
-
-PyAPI_FUNC(double) PyFloat_Unpack2(const char *p, int le);
-PyAPI_FUNC(double) PyFloat_Unpack4(const char *p, int le);
-PyAPI_FUNC(double) PyFloat_Unpack8(const char *p, int le);