Nuitka
The Python compiler
Loading...
Searching...
No Matches
HelpersOperationBinaryDivmodUtils.c
1
// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3
/* These are defines used in floordiv code.
4
5
*/
6
7
// This file is included from another C file, help IDEs to still parse it on
8
// its own.
9
#ifdef __IDE_ONLY__
10
#include "nuitka/prelude.h"
11
#endif
12
13
#include <float.h>
14
15
/* Check if unary negation would not fit into long */
16
#define UNARY_NEG_WOULD_OVERFLOW(x) ((x) < 0 && (unsigned long)(x) == 0 - (unsigned long)(x))
17
/* This is from pyport.h */
18
#define WIDTH_OF_ULONG (CHAR_BIT * SIZEOF_LONG)
19
20
// Part of "Nuitka", an optimizing Python compiler that is compatible and
21
// integrates with CPython, but also works on its own.
22
//
23
// Licensed under the Apache License, Version 2.0 (the "License");
24
// you may not use this file except in compliance with the License.
25
// You may obtain a copy of the License at
26
//
27
// http://www.apache.org/licenses/LICENSE-2.0
28
//
29
// Unless required by applicable law or agreed to in writing, software
30
// distributed under the License is distributed on an "AS IS" BASIS,
31
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
// See the License for the specific language governing permissions and
33
// limitations under the License.
nuitka
build
static_src
HelpersOperationBinaryDivmodUtils.c
Generated by
1.9.8