1- cdef extern from " fftw3.h" :
1+ # cython: language_level=3str
2+ cdef extern from " fftw3.h" nogil:
23
34 ctypedef struct fftw_complex_struct:
45 pass
@@ -12,15 +13,15 @@ cdef extern from "fftw3.h":
1213
1314 void fftw_destroy_plan(fftw_plan)
1415
15- void fftw_execute_dft(fftw_plan, void * _in, void * _out) nogil
16+ void fftw_execute_dft(fftw_plan, void * _in, void * _out)
1617
17- void fftw_execute_dft_c2r(fftw_plan, void * _in, void * _out) nogil
18+ void fftw_execute_dft_c2r(fftw_plan, void * _in, void * _out)
1819
19- void fftw_execute_dft_r2c(fftw_plan, void * _in, void * _out) nogil
20+ void fftw_execute_dft_r2c(fftw_plan, void * _in, void * _out)
2021
21- void fftw_execute_r2r(fftw_plan, void * _in, void * _out) nogil
22+ void fftw_execute_r2r(fftw_plan, void * _in, void * _out)
2223
23- void fftw_execute(fftw_plan) nogil
24+ void fftw_execute(fftw_plan)
2425
2526 void fftw_init_threads()
2627
@@ -43,7 +44,7 @@ cdef extern from "fftw3.h":
4344 void fftw_print_plan(fftw_plan)
4445
4546
46- cdef extern from " fftw_planxfftn.h" :
47+ cdef extern from " fftw_planxfftn.h" nogil :
4748
4849 ctypedef double fftw_real
4950
@@ -57,4 +58,4 @@ cdef extern from "fftw_planxfftn.h":
5758 int kind[],
5859 unsigned flags)
5960
60- ctypedef void (* generic_function)(void * plan, void * _in, void * _out) nogil
61+ ctypedef void (* generic_function)(void * plan, void * _in, void * _out) noexcept nogil
0 commit comments