Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_binary_olddiv.h
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3/* WARNING, this code is GENERATED. Modify the template HelperOperationBinary.c.j2 instead! */
4
5/* This file is included from another C file, help IDEs to still parse it on its own. */
6#ifdef __IDE_ONLY__
7#include "nuitka/prelude.h"
8#endif
9
10/* C helpers for type specialized "/" (OLDDIV) operations */
11
12#if PYTHON_VERSION < 0x300
13/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
14extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_INT_INT(PyObject *operand1, PyObject *operand2);
15#endif
16
17#if PYTHON_VERSION < 0x300
18/* Code referring to "OBJECT" corresponds to any Python object and "INT" to Python2 'int'. */
19extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_OBJECT_INT(PyObject *operand1, PyObject *operand2);
20#endif
21
22#if PYTHON_VERSION < 0x300
23/* Code referring to "INT" corresponds to Python2 'int' and "OBJECT" to any Python object. */
24extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_INT_OBJECT(PyObject *operand1, PyObject *operand2);
25#endif
26
27#if PYTHON_VERSION < 0x300
28/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
29extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_LONG_LONG(PyObject *operand1, PyObject *operand2);
30#endif
31
32#if PYTHON_VERSION < 0x300
33/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
34extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_OBJECT_LONG(PyObject *operand1, PyObject *operand2);
35#endif
36
37#if PYTHON_VERSION < 0x300
38/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
39extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_LONG_OBJECT(PyObject *operand1, PyObject *operand2);
40#endif
41
42#if PYTHON_VERSION < 0x300
43/* Code referring to "FLOAT" corresponds to Python 'float' and "FLOAT" to Python 'float'. */
44extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_FLOAT_FLOAT(PyObject *operand1, PyObject *operand2);
45#endif
46
47#if PYTHON_VERSION < 0x300
48/* Code referring to "OBJECT" corresponds to any Python object and "FLOAT" to Python 'float'. */
49extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_OBJECT_FLOAT(PyObject *operand1, PyObject *operand2);
50#endif
51
52#if PYTHON_VERSION < 0x300
53/* Code referring to "FLOAT" corresponds to Python 'float' and "OBJECT" to any Python object. */
54extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_FLOAT_OBJECT(PyObject *operand1, PyObject *operand2);
55#endif
56
57#if PYTHON_VERSION < 0x300
58/* Code referring to "FLOAT" corresponds to Python 'float' and "LONG" to Python2 'long', Python3 'int'. */
59extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_FLOAT_LONG(PyObject *operand1, PyObject *operand2);
60#endif
61
62#if PYTHON_VERSION < 0x300
63/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "FLOAT" to Python 'float'. */
64extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_LONG_FLOAT(PyObject *operand1, PyObject *operand2);
65#endif
66
67#if PYTHON_VERSION < 0x300
68/* Code referring to "FLOAT" corresponds to Python 'float' and "INT" to Python2 'int'. */
69extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_FLOAT_INT(PyObject *operand1, PyObject *operand2);
70#endif
71
72#if PYTHON_VERSION < 0x300
73/* Code referring to "INT" corresponds to Python2 'int' and "FLOAT" to Python 'float'. */
74extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_INT_FLOAT(PyObject *operand1, PyObject *operand2);
75#endif
76
77#if PYTHON_VERSION < 0x300
78/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
79extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_LONG_INT(PyObject *operand1, PyObject *operand2);
80#endif
81
82#if PYTHON_VERSION < 0x300
83/* Code referring to "INT" corresponds to Python2 'int' and "LONG" to Python2 'long', Python3 'int'. */
84extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_INT_LONG(PyObject *operand1, PyObject *operand2);
85#endif
86
87#if PYTHON_VERSION < 0x300
88/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
89extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_INT_CLONG(PyObject *operand1, long operand2);
90#endif
91
92#if PYTHON_VERSION < 0x300
93/* Code referring to "CLONG" corresponds to C platform long value and "INT" to Python2 'int'. */
94extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_CLONG_INT(long operand1, PyObject *operand2);
95#endif
96
97#if PYTHON_VERSION < 0x300
98/* Code referring to "FLOAT" corresponds to Python 'float' and "CFLOAT" to C platform float value. */
99extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_FLOAT_CFLOAT(PyObject *operand1, double operand2);
100#endif
101
102#if PYTHON_VERSION < 0x300
103/* Code referring to "CFLOAT" corresponds to C platform float value and "FLOAT" to Python 'float'. */
104extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_CFLOAT_FLOAT(double operand1, PyObject *operand2);
105#endif
106
107#if PYTHON_VERSION < 0x300
108/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
109extern PyObject *BINARY_OPERATION_OLDDIV_OBJECT_OBJECT_OBJECT(PyObject *operand1, PyObject *operand2);
110#endif
111
112// Part of "Nuitka", an optimizing Python compiler that is compatible and
113// integrates with CPython, but also works on its own.
114//
115// Licensed under the Apache License, Version 2.0 (the "License");
116// you may not use this file except in compliance with the License.
117// You may obtain a copy of the License at
118//
119// http://www.apache.org/licenses/LICENSE-2.0
120//
121// Unless required by applicable law or agreed to in writing, software
122// distributed under the License is distributed on an "AS IS" BASIS,
123// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
124// See the License for the specific language governing permissions and
125// limitations under the License.