Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_inplace_rshift.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 ">>" (RSHIFT) operations */
11
12/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
13extern bool INPLACE_OPERATION_RSHIFT_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_RSHIFT_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_RSHIFT_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_RSHIFT_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_RSHIFT_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_RSHIFT_INT_OBJECT(PyObject **operand1, PyObject *operand2);
34#endif
35
36#if PYTHON_VERSION < 0x300
37/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
38extern bool INPLACE_OPERATION_RSHIFT_LONG_INT(PyObject **operand1, PyObject *operand2);
39#endif
40
41#if PYTHON_VERSION < 0x300
42/* Code referring to "INT" corresponds to Python2 'int' and "LONG" to Python2 'long', Python3 'int'. */
43extern bool INPLACE_OPERATION_RSHIFT_INT_LONG(PyObject **operand1, PyObject *operand2);
44#endif
45
46/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
47extern bool INPLACE_OPERATION_RSHIFT_OBJECT_OBJECT(PyObject **operand1, PyObject *operand2);
48
49// Part of "Nuitka", an optimizing Python compiler that is compatible and
50// integrates with CPython, but also works on its own.
51//
52// Licensed under the Apache License, Version 2.0 (the "License");
53// you may not use this file except in compliance with the License.
54// You may obtain a copy of the License at
55//
56// http://www.apache.org/licenses/LICENSE-2.0
57//
58// Unless required by applicable law or agreed to in writing, software
59// distributed under the License is distributed on an "AS IS" BASIS,
60// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61// See the License for the specific language governing permissions and
62// limitations under the License.