Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_inplace_mult.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 HelperOperationInplace.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 in-place "*" (MULT) operations */
11
12#if PYTHON_VERSION < 0x300
13/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
14extern bool INPLACE_OPERATION_MULT_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 bool INPLACE_OPERATION_MULT_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 bool INPLACE_OPERATION_MULT_INT_OBJECT(PyObject **operand1, PyObject *operand2);
25#endif
26
27/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
28extern bool INPLACE_OPERATION_MULT_LONG_LONG(PyObject **operand1, PyObject *operand2);
29
30/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
31extern bool INPLACE_OPERATION_MULT_OBJECT_LONG(PyObject **operand1, PyObject *operand2);
32
33/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
34extern bool INPLACE_OPERATION_MULT_LONG_OBJECT(PyObject **operand1, PyObject *operand2);
35
36/* Code referring to "FLOAT" corresponds to Python 'float' and "FLOAT" to Python 'float'. */
37extern bool INPLACE_OPERATION_MULT_FLOAT_FLOAT(PyObject **operand1, PyObject *operand2);
38
39/* Code referring to "OBJECT" corresponds to any Python object and "FLOAT" to Python 'float'. */
40extern bool INPLACE_OPERATION_MULT_OBJECT_FLOAT(PyObject **operand1, PyObject *operand2);
41
42/* Code referring to "FLOAT" corresponds to Python 'float' and "OBJECT" to any Python object. */
43extern bool INPLACE_OPERATION_MULT_FLOAT_OBJECT(PyObject **operand1, PyObject *operand2);
44
45/* Code referring to "FLOAT" corresponds to Python 'float' and "LONG" to Python2 'long', Python3 'int'. */
46extern bool INPLACE_OPERATION_MULT_FLOAT_LONG(PyObject **operand1, PyObject *operand2);
47
48/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "FLOAT" to Python 'float'. */
49extern bool INPLACE_OPERATION_MULT_LONG_FLOAT(PyObject **operand1, PyObject *operand2);
50
51#if PYTHON_VERSION < 0x300
52/* Code referring to "FLOAT" corresponds to Python 'float' and "INT" to Python2 'int'. */
53extern bool INPLACE_OPERATION_MULT_FLOAT_INT(PyObject **operand1, PyObject *operand2);
54#endif
55
56#if PYTHON_VERSION < 0x300
57/* Code referring to "INT" corresponds to Python2 'int' and "FLOAT" to Python 'float'. */
58extern bool INPLACE_OPERATION_MULT_INT_FLOAT(PyObject **operand1, PyObject *operand2);
59#endif
60
61#if PYTHON_VERSION < 0x300
62/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
63extern bool INPLACE_OPERATION_MULT_LONG_INT(PyObject **operand1, PyObject *operand2);
64#endif
65
66#if PYTHON_VERSION < 0x300
67/* Code referring to "INT" corresponds to Python2 'int' and "LONG" to Python2 'long', Python3 'int'. */
68extern bool INPLACE_OPERATION_MULT_INT_LONG(PyObject **operand1, PyObject *operand2);
69#endif
70
71#if PYTHON_VERSION < 0x300
72/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
73extern bool INPLACE_OPERATION_MULT_INT_CLONG(PyObject **operand1, long operand2);
74#endif
75
76/* Code referring to "FLOAT" corresponds to Python 'float' and "CFLOAT" to C platform float value. */
77extern bool INPLACE_OPERATION_MULT_FLOAT_CFLOAT(PyObject **operand1, double operand2);
78
79#if PYTHON_VERSION < 0x300
80/* Code referring to "STR" corresponds to Python2 'str' and "INT" to Python2 'int'. */
81extern bool INPLACE_OPERATION_MULT_STR_INT(PyObject **operand1, PyObject *operand2);
82#endif
83
84#if PYTHON_VERSION < 0x300
85/* Code referring to "INT" corresponds to Python2 'int' and "STR" to Python2 'str'. */
86extern bool INPLACE_OPERATION_MULT_INT_STR(PyObject **operand1, PyObject *operand2);
87#endif
88
89#if PYTHON_VERSION < 0x300
90/* Code referring to "UNICODE" corresponds to Python2 'unicode', Python3 'str' and "INT" to Python2 'int'. */
91extern bool INPLACE_OPERATION_MULT_UNICODE_INT(PyObject **operand1, PyObject *operand2);
92#endif
93
94#if PYTHON_VERSION < 0x300
95/* Code referring to "INT" corresponds to Python2 'int' and "UNICODE" to Python2 'unicode', Python3 'str'. */
96extern bool INPLACE_OPERATION_MULT_INT_UNICODE(PyObject **operand1, PyObject *operand2);
97#endif
98
99#if PYTHON_VERSION < 0x300
100/* Code referring to "TUPLE" corresponds to Python 'tuple' and "INT" to Python2 'int'. */
101extern bool INPLACE_OPERATION_MULT_TUPLE_INT(PyObject **operand1, PyObject *operand2);
102#endif
103
104#if PYTHON_VERSION < 0x300
105/* Code referring to "INT" corresponds to Python2 'int' and "TUPLE" to Python 'tuple'. */
106extern bool INPLACE_OPERATION_MULT_INT_TUPLE(PyObject **operand1, PyObject *operand2);
107#endif
108
109#if PYTHON_VERSION < 0x300
110/* Code referring to "LIST" corresponds to Python 'list' and "INT" to Python2 'int'. */
111extern bool INPLACE_OPERATION_MULT_LIST_INT(PyObject **operand1, PyObject *operand2);
112#endif
113
114#if PYTHON_VERSION < 0x300
115/* Code referring to "INT" corresponds to Python2 'int' and "LIST" to Python 'list'. */
116extern bool INPLACE_OPERATION_MULT_INT_LIST(PyObject **operand1, PyObject *operand2);
117#endif
118
119/* Code referring to "UNICODE" corresponds to Python2 'unicode', Python3 'str' and "LONG" to Python2 'long', Python3
120 * 'int'. */
121extern bool INPLACE_OPERATION_MULT_UNICODE_LONG(PyObject **operand1, PyObject *operand2);
122
123/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "UNICODE" to Python2 'unicode', Python3
124 * 'str'. */
125extern bool INPLACE_OPERATION_MULT_LONG_UNICODE(PyObject **operand1, PyObject *operand2);
126
127#if PYTHON_VERSION >= 0x300
128/* Code referring to "BYTES" corresponds to Python3 'bytes' and "LONG" to Python2 'long', Python3 'int'. */
129extern bool INPLACE_OPERATION_MULT_BYTES_LONG(PyObject **operand1, PyObject *operand2);
130#endif
131
132#if PYTHON_VERSION >= 0x300
133/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "BYTES" to Python3 'bytes'. */
134extern bool INPLACE_OPERATION_MULT_LONG_BYTES(PyObject **operand1, PyObject *operand2);
135#endif
136
137/* Code referring to "TUPLE" corresponds to Python 'tuple' and "LONG" to Python2 'long', Python3 'int'. */
138extern bool INPLACE_OPERATION_MULT_TUPLE_LONG(PyObject **operand1, PyObject *operand2);
139
140/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "TUPLE" to Python 'tuple'. */
141extern bool INPLACE_OPERATION_MULT_LONG_TUPLE(PyObject **operand1, PyObject *operand2);
142
143/* Code referring to "LIST" corresponds to Python 'list' and "LONG" to Python2 'long', Python3 'int'. */
144extern bool INPLACE_OPERATION_MULT_LIST_LONG(PyObject **operand1, PyObject *operand2);
145
146/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LIST" to Python 'list'. */
147extern bool INPLACE_OPERATION_MULT_LONG_LIST(PyObject **operand1, PyObject *operand2);
148
149#if PYTHON_VERSION < 0x300
150/* Code referring to "STR" corresponds to Python2 'str' and "OBJECT" to any Python object. */
151extern bool INPLACE_OPERATION_MULT_STR_OBJECT(PyObject **operand1, PyObject *operand2);
152#endif
153
154/* Code referring to "UNICODE" corresponds to Python2 'unicode', Python3 'str' and "OBJECT" to any Python object. */
155extern bool INPLACE_OPERATION_MULT_UNICODE_OBJECT(PyObject **operand1, PyObject *operand2);
156
157#if PYTHON_VERSION >= 0x300
158/* Code referring to "BYTES" corresponds to Python3 'bytes' and "OBJECT" to any Python object. */
159extern bool INPLACE_OPERATION_MULT_BYTES_OBJECT(PyObject **operand1, PyObject *operand2);
160#endif
161
162/* Code referring to "TUPLE" corresponds to Python 'tuple' and "OBJECT" to any Python object. */
163extern bool INPLACE_OPERATION_MULT_TUPLE_OBJECT(PyObject **operand1, PyObject *operand2);
164
165/* Code referring to "LIST" corresponds to Python 'list' and "OBJECT" to any Python object. */
166extern bool INPLACE_OPERATION_MULT_LIST_OBJECT(PyObject **operand1, PyObject *operand2);
167
168/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
169extern bool INPLACE_OPERATION_MULT_OBJECT_OBJECT(PyObject **operand1, PyObject *operand2);
170
171// Part of "Nuitka", an optimizing Python compiler that is compatible and
172// integrates with CPython, but also works on its own.
173//
174// Licensed under the Apache License, Version 2.0 (the "License");
175// you may not use this file except in compliance with the License.
176// You may obtain a copy of the License at
177//
178// http://www.apache.org/licenses/LICENSE-2.0
179//
180// Unless required by applicable law or agreed to in writing, software
181// distributed under the License is distributed on an "AS IS" BASIS,
182// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183// See the License for the specific language governing permissions and
184// limitations under the License.