Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_inplace_bitand.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 "&" (BITAND) operations */
11
12/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
13extern bool INPLACE_OPERATION_BITAND_LONG_LONG(PyObject **operand1, PyObject *operand2);
14
15/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
16extern bool INPLACE_OPERATION_BITAND_OBJECT_LONG(PyObject **operand1, PyObject *operand2);
17
18/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
19extern bool INPLACE_OPERATION_BITAND_LONG_OBJECT(PyObject **operand1, PyObject *operand2);
20
21#if PYTHON_VERSION < 0x300
22/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
23extern bool INPLACE_OPERATION_BITAND_INT_INT(PyObject **operand1, PyObject *operand2);
24#endif
25
26#if PYTHON_VERSION < 0x300
27/* Code referring to "OBJECT" corresponds to any Python object and "INT" to Python2 'int'. */
28extern bool INPLACE_OPERATION_BITAND_OBJECT_INT(PyObject **operand1, PyObject *operand2);
29#endif
30
31#if PYTHON_VERSION < 0x300
32/* Code referring to "INT" corresponds to Python2 'int' and "OBJECT" to any Python object. */
33extern bool INPLACE_OPERATION_BITAND_INT_OBJECT(PyObject **operand1, PyObject *operand2);
34#endif
35
36#if PYTHON_VERSION < 0x300
37/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
38extern bool INPLACE_OPERATION_BITAND_INT_CLONG(PyObject **operand1, long operand2);
39#endif
40
41#if PYTHON_VERSION < 0x300
42/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
43extern bool INPLACE_OPERATION_BITAND_LONG_INT(PyObject **operand1, PyObject *operand2);
44#endif
45
46#if PYTHON_VERSION < 0x300
47/* Code referring to "INT" corresponds to Python2 'int' and "LONG" to Python2 'long', Python3 'int'. */
48extern bool INPLACE_OPERATION_BITAND_INT_LONG(PyObject **operand1, PyObject *operand2);
49#endif
50
51/* Code referring to "SET" corresponds to Python 'set' and "SET" to Python 'set'. */
52extern bool INPLACE_OPERATION_BITAND_SET_SET(PyObject **operand1, PyObject *operand2);
53
54/* Code referring to "OBJECT" corresponds to any Python object and "SET" to Python 'set'. */
55extern bool INPLACE_OPERATION_BITAND_OBJECT_SET(PyObject **operand1, PyObject *operand2);
56
57/* Code referring to "SET" corresponds to Python 'set' and "OBJECT" to any Python object. */
58extern bool INPLACE_OPERATION_BITAND_SET_OBJECT(PyObject **operand1, PyObject *operand2);
59
60/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
61extern bool INPLACE_OPERATION_BITAND_OBJECT_OBJECT(PyObject **operand1, PyObject *operand2);
62
63// Part of "Nuitka", an optimizing Python compiler that is compatible and
64// integrates with CPython, but also works on its own.
65//
66// Licensed under the Apache License, Version 2.0 (the "License");
67// you may not use this file except in compliance with the License.
68// You may obtain a copy of the License at
69//
70// http://www.apache.org/licenses/LICENSE-2.0
71//
72// Unless required by applicable law or agreed to in writing, software
73// distributed under the License is distributed on an "AS IS" BASIS,
74// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
75// See the License for the specific language governing permissions and
76// limitations under the License.