Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_inplace_pow.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 "**" (POW) operations */
11
12/* Code referring to "FLOAT" corresponds to Python 'float' and "FLOAT" to Python 'float'. */
13extern bool INPLACE_OPERATION_POW_FLOAT_FLOAT(PyObject **operand1, PyObject *operand2);
14
15/* Code referring to "OBJECT" corresponds to any Python object and "FLOAT" to Python 'float'. */
16extern bool INPLACE_OPERATION_POW_OBJECT_FLOAT(PyObject **operand1, PyObject *operand2);
17
18/* Code referring to "FLOAT" corresponds to Python 'float' and "OBJECT" to any Python object. */
19extern bool INPLACE_OPERATION_POW_FLOAT_OBJECT(PyObject **operand1, PyObject *operand2);
20
21/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
22extern bool INPLACE_OPERATION_POW_LONG_LONG(PyObject **operand1, PyObject *operand2);
23
24/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
25extern bool INPLACE_OPERATION_POW_OBJECT_LONG(PyObject **operand1, PyObject *operand2);
26
27/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
28extern bool INPLACE_OPERATION_POW_LONG_OBJECT(PyObject **operand1, PyObject *operand2);
29
30#if PYTHON_VERSION < 0x300
31/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
32extern bool INPLACE_OPERATION_POW_INT_INT(PyObject **operand1, PyObject *operand2);
33#endif
34
35#if PYTHON_VERSION < 0x300
36/* Code referring to "OBJECT" corresponds to any Python object and "INT" to Python2 'int'. */
37extern bool INPLACE_OPERATION_POW_OBJECT_INT(PyObject **operand1, PyObject *operand2);
38#endif
39
40#if PYTHON_VERSION < 0x300
41/* Code referring to "INT" corresponds to Python2 'int' and "OBJECT" to any Python object. */
42extern bool INPLACE_OPERATION_POW_INT_OBJECT(PyObject **operand1, PyObject *operand2);
43#endif
44
45/* Code referring to "FLOAT" corresponds to Python 'float' and "LONG" to Python2 'long', Python3 'int'. */
46extern bool INPLACE_OPERATION_POW_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_POW_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_POW_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_POW_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_POW_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_POW_INT_LONG(PyObject **operand1, PyObject *operand2);
69#endif
70
71/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
72extern bool INPLACE_OPERATION_POW_OBJECT_OBJECT(PyObject **operand1, PyObject *operand2);
73
74// Part of "Nuitka", an optimizing Python compiler that is compatible and
75// integrates with CPython, but also works on its own.
76//
77// Licensed under the Apache License, Version 2.0 (the "License");
78// you may not use this file except in compliance with the License.
79// You may obtain a copy of the License at
80//
81// http://www.apache.org/licenses/LICENSE-2.0
82//
83// Unless required by applicable law or agreed to in writing, software
84// distributed under the License is distributed on an "AS IS" BASIS,
85// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
86// See the License for the specific language governing permissions and
87// limitations under the License.