Nuitka
The Python compiler
Loading...
Searching...
No Matches
HelpersOperationBinaryPowUtils.c
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3// This file is included from another C file, help IDEs to still parse it on
4// its own.
5#ifdef __IDE_ONLY__
6#include "nuitka/prelude.h"
7#endif
8
9#include <float.h>
10
11#define DOUBLE_IS_ODD_INTEGER(x) (fmod(fabs(x), 2.0) == 1.0)
12
13// Part of "Nuitka", an optimizing Python compiler that is compatible and
14// integrates with CPython, but also works on its own.
15//
16// Licensed under the Apache License, Version 2.0 (the "License");
17// you may not use this file except in compliance with the License.
18// You may obtain a copy of the License at
19//
20// http://www.apache.org/licenses/LICENSE-2.0
21//
22// Unless required by applicable law or agreed to in writing, software
23// distributed under the License is distributed on an "AS IS" BASIS,
24// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25// See the License for the specific language governing permissions and
26// limitations under the License.