Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_binary_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 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 "&" (BITAND) operations */
11
12/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
13extern PyObject *BINARY_OPERATION_BITAND_OBJECT_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 PyObject *BINARY_OPERATION_BITAND_OBJECT_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 PyObject *BINARY_OPERATION_BITAND_OBJECT_LONG_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 nuitka_bool BINARY_OPERATION_BITAND_NBOOL_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 nuitka_bool BINARY_OPERATION_BITAND_NBOOL_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 nuitka_bool BINARY_OPERATION_BITAND_NBOOL_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 PyObject *BINARY_OPERATION_BITAND_OBJECT_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 PyObject *BINARY_OPERATION_BITAND_OBJECT_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 PyObject *BINARY_OPERATION_BITAND_OBJECT_INT_OBJECT(PyObject *operand1, PyObject *operand2);
43#endif
44
45#if PYTHON_VERSION < 0x300
46/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
47extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_INT_INT(PyObject *operand1, PyObject *operand2);
48#endif
49
50#if PYTHON_VERSION < 0x300
51/* Code referring to "OBJECT" corresponds to any Python object and "INT" to Python2 'int'. */
52extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_OBJECT_INT(PyObject *operand1, PyObject *operand2);
53#endif
54
55#if PYTHON_VERSION < 0x300
56/* Code referring to "INT" corresponds to Python2 'int' and "OBJECT" to any Python object. */
57extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_INT_OBJECT(PyObject *operand1, PyObject *operand2);
58#endif
59
60#if PYTHON_VERSION < 0x300
61/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
62extern PyObject *BINARY_OPERATION_BITAND_OBJECT_INT_CLONG(PyObject *operand1, long operand2);
63#endif
64
65#if PYTHON_VERSION < 0x300
66/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
67extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_INT_CLONG(PyObject *operand1, long operand2);
68#endif
69
70#if PYTHON_VERSION < 0x300
71/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
72extern PyObject *BINARY_OPERATION_BITAND_OBJECT_LONG_INT(PyObject *operand1, PyObject *operand2);
73#endif
74
75#if PYTHON_VERSION < 0x300
76/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
77extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_LONG_INT(PyObject *operand1, PyObject *operand2);
78#endif
79
80/* Code referring to "SET" corresponds to Python 'set' and "SET" to Python 'set'. */
81extern PyObject *BINARY_OPERATION_BITAND_OBJECT_SET_SET(PyObject *operand1, PyObject *operand2);
82
83/* Code referring to "OBJECT" corresponds to any Python object and "SET" to Python 'set'. */
84extern PyObject *BINARY_OPERATION_BITAND_OBJECT_OBJECT_SET(PyObject *operand1, PyObject *operand2);
85
86/* Code referring to "SET" corresponds to Python 'set' and "OBJECT" to any Python object. */
87extern PyObject *BINARY_OPERATION_BITAND_OBJECT_SET_OBJECT(PyObject *operand1, PyObject *operand2);
88
89/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
90extern PyObject *BINARY_OPERATION_BITAND_OBJECT_OBJECT_OBJECT(PyObject *operand1, PyObject *operand2);
91
92/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
93extern nuitka_bool BINARY_OPERATION_BITAND_NBOOL_OBJECT_OBJECT(PyObject *operand1, PyObject *operand2);
94
95// Part of "Nuitka", an optimizing Python compiler that is compatible and
96// integrates with CPython, but also works on its own.
97//
98// Licensed under the Apache License, Version 2.0 (the "License");
99// you may not use this file except in compliance with the License.
100// You may obtain a copy of the License at
101//
102// http://www.apache.org/licenses/LICENSE-2.0
103//
104// Unless required by applicable law or agreed to in writing, software
105// distributed under the License is distributed on an "AS IS" BASIS,
106// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
107// See the License for the specific language governing permissions and
108// limitations under the License.