mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-12-01 23:12:49 -05:00
Remove Python 2 mentions
Also fix up indents
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
# Warnings
|
||||
#
|
||||
|
||||
WARNINGS = -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
WARNINGS = -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast \
|
||||
-Wwrite-strings
|
||||
|
||||
@ -26,10 +26,10 @@ CXXFLAGS = -O3 -ffast-math -fomit-frame-pointer -I.. -W -Wall -march=native -mt
|
||||
#
|
||||
|
||||
ifeq "$(NFFT)" ""
|
||||
NFFT = 1800
|
||||
NFFT = 1800
|
||||
endif
|
||||
ifeq "$(NUMFFTS)" ""
|
||||
NUMFFTS = 10000
|
||||
NUMFFTS = 10000
|
||||
endif
|
||||
|
||||
#
|
||||
@ -39,32 +39,32 @@ endif
|
||||
SELFTESTSRC = twotonetest.c
|
||||
|
||||
ifneq ($(KISSFFT_OPENMP),1)
|
||||
BENCHKISS = bm-kiss-$(KISSFFT_DATATYPE)
|
||||
BENCHFFTW = bm-fftw-$(KISSFFT_DATATYPE)
|
||||
SELFTEST = st-$(KISSFFT_DATATYPE)
|
||||
TESTREAL = tr-$(KISSFFT_DATATYPE)
|
||||
TESTKFC = tkfc-$(KISSFFT_DATATYPE)
|
||||
TESTFASTFILT = fastfilt-$(KISSFFT_DATATYPE)
|
||||
TESTCPP = testcpp-$(KISSFFT_DATATYPE)
|
||||
TESTSIMD = testsimd
|
||||
BENCHKISS = bm-kiss-$(KISSFFT_DATATYPE)
|
||||
BENCHFFTW = bm-fftw-$(KISSFFT_DATATYPE)
|
||||
SELFTEST = st-$(KISSFFT_DATATYPE)
|
||||
TESTREAL = tr-$(KISSFFT_DATATYPE)
|
||||
TESTKFC = tkfc-$(KISSFFT_DATATYPE)
|
||||
TESTFASTFILT = fastfilt-$(KISSFFT_DATATYPE)
|
||||
TESTCPP = testcpp-$(KISSFFT_DATATYPE)
|
||||
TESTSIMD = testsimd
|
||||
else
|
||||
BENCHKISS = bm-kiss-$(KISSFFT_DATATYPE)-openmp
|
||||
BENCHFFTW = bm-fftw-$(KISSFFT_DATATYPE)-openmp
|
||||
SELFTEST = st-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTREAL = tr-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTKFC = tkfc-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTFASTFILT = fastfilt-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTCPP = testcpp-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTSIMD = testsimd-openmp
|
||||
CFLAGS += -fopenmp
|
||||
CXXFLAGS += -fopenmp
|
||||
BENCHKISS = bm-kiss-$(KISSFFT_DATATYPE)-openmp
|
||||
BENCHFFTW = bm-fftw-$(KISSFFT_DATATYPE)-openmp
|
||||
SELFTEST = st-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTREAL = tr-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTKFC = tkfc-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTFASTFILT = fastfilt-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTCPP = testcpp-$(KISSFFT_DATATYPE)-openmp
|
||||
TESTSIMD = testsimd-openmp
|
||||
CFLAGS += -fopenmp
|
||||
CXXFLAGS += -fopenmp
|
||||
endif
|
||||
|
||||
ifeq "$(KISSFFT_DATATYPE)" "float"
|
||||
# fftw needs to be built with --enable-float to build this lib
|
||||
FFTWLIB = -lfftw3f
|
||||
# fftw needs to be built with --enable-float to build this lib
|
||||
FFTWLIB = -lfftw3f
|
||||
else
|
||||
FFTWLIB = -lfftw3
|
||||
FFTWLIB = -lfftw3
|
||||
endif
|
||||
|
||||
FFTWLIBDIR ?= $(ABS_LIBDIR)
|
||||
@ -86,22 +86,17 @@ endif
|
||||
#
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
PYTHON_INTERPRETER = $(shell python --version)
|
||||
ifeq ($(PYTHON_INTERPRETER), )
|
||||
PYTHON_INTERPRETER = $(shell python2 --version)
|
||||
ifeq ($(PYTHON_INTERPRETER), )
|
||||
PYTHON_INTERPRETER = $(shell python3 --version)
|
||||
ifeq ($(PYTHON_INTERPRETER), )
|
||||
$(error ERROR: Can not find Python interpreter!)
|
||||
else
|
||||
PYTHON_INTERPRETER = "python3"
|
||||
endif
|
||||
else
|
||||
PYTHON_INTERPRETER = "python2"
|
||||
endif
|
||||
else
|
||||
PYTHON_INTERPRETER = "python"
|
||||
endif
|
||||
ifeq ($(PYTHON_INTERPRETER), )
|
||||
PYTHON_INTERPRETER = $(shell python --version)
|
||||
ifeq ($(PYTHON_INTERPRETER), )
|
||||
$(error ERROR: Can not find Python interpreter!)
|
||||
else
|
||||
PYTHON_INTERPRETER = "python"
|
||||
endif
|
||||
else
|
||||
PYTHON_INTERPRETER = "python3"
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
|
||||
@ -4,12 +4,9 @@
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# See COPYING file for more information.
|
||||
from __future__ import absolute_import, division, print_function
|
||||
import math
|
||||
import sys
|
||||
import os
|
||||
import random
|
||||
import struct
|
||||
import getopt
|
||||
import numpy as np
|
||||
|
||||
@ -125,7 +122,7 @@ def dofft(x, isreal):
|
||||
p.wait()
|
||||
return np.reshape(res, dims)
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'r')
|
||||
opts = dict(opts)
|
||||
global do_real
|
||||
|
||||
Reference in New Issue
Block a user