diff options
| author | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
| commit | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (patch) | |
| tree | 6d9c83527c56458a8360ba080bf5f4ca73d526dc /map65/libm65/fftw3_f77_interfaces.f90 | |
| parent | 4b089ae3f7e9e2d5662f718f663b26a4e8ee63ca (diff) | |
New upstream version 3.0.2+dfsgupstream/3.0.2+dfsg
Diffstat (limited to 'map65/libm65/fftw3_f77_interfaces.f90')
| -rw-r--r-- | map65/libm65/fftw3_f77_interfaces.f90 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/map65/libm65/fftw3_f77_interfaces.f90 b/map65/libm65/fftw3_f77_interfaces.f90 new file mode 100644 index 00000000..1b5af220 --- /dev/null +++ b/map65/libm65/fftw3_f77_interfaces.f90 @@ -0,0 +1,44 @@ +module fftw3_f77_interfaces + use iso_c_binding, only: c_int, c_intptr_t, c_float_complex, c_float + implicit none + + interface + subroutine sfftw_destroy_plan(plan) + import :: c_intptr_t + implicit none + integer(c_intptr_t) :: plan + end subroutine sfftw_destroy_plan + + subroutine sfftw_plan_dft_1d(plan, n, in, out, sign, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, sign, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_1d + + subroutine sfftw_plan_dft_r2c_1d(plan, n, in, out, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_r2c_1d + + subroutine sfftw_plan_dft_c2r_1d(plan, n, in, out, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_c2r_1d + + subroutine sfftw_execute(plan) + import :: c_intptr_t + implicit none + integer(c_intptr_t) :: plan + end subroutine sfftw_execute + end interface + +end module fftw3_f77_interfaces + |
