Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_binary_matmult.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 "@" (MATMULT) operations */
11
12#if PYTHON_VERSION >= 0x350
13/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
14extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_LONG_LONG(PyObject *operand1, PyObject *operand2);
15#endif
16
17#if PYTHON_VERSION >= 0x350
18/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
19extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_OBJECT_LONG(PyObject *operand1, PyObject *operand2);
20#endif
21
22#if PYTHON_VERSION >= 0x350
23/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
24extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_LONG_OBJECT(PyObject *operand1, PyObject *operand2);
25#endif
26
27#if PYTHON_VERSION >= 0x350
28/* Code referring to "FLOAT" corresponds to Python 'float' and "FLOAT" to Python 'float'. */
29extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_FLOAT_FLOAT(PyObject *operand1, PyObject *operand2);
30#endif
31
32#if PYTHON_VERSION >= 0x350
33/* Code referring to "OBJECT" corresponds to any Python object and "FLOAT" to Python 'float'. */
34extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_OBJECT_FLOAT(PyObject *operand1, PyObject *operand2);
35#endif
36
37#if PYTHON_VERSION >= 0x350
38/* Code referring to "FLOAT" corresponds to Python 'float' and "OBJECT" to any Python object. */
39extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_FLOAT_OBJECT(PyObject *operand1, PyObject *operand2);
40#endif
41
42#if PYTHON_VERSION >= 0x350
43/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
44extern PyObject *BINARY_OPERATION_MATMULT_OBJECT_OBJECT_OBJECT(PyObject *operand1, PyObject *operand2);
45#endif
46
47// Part of "Nuitka", an optimizing Python compiler that is compatible and
48// integrates with CPython, but also works on its own.
49//
50// Licensed under the Apache License, Version 2.0 (the "License");
51// you may not use this file except in compliance with the License.
52// You may obtain a copy of the License at
53//
54// http://www.apache.org/licenses/LICENSE-2.0
55//
56// Unless required by applicable law or agreed to in writing, software
57// distributed under the License is distributed on an "AS IS" BASIS,
58// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59// See the License for the specific language governing permissions and
60// limitations under the License.