1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
3 ;;; "f2cl2.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
4 ;;; "f2cl3.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
5 ;;; "f2cl4.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
6 ;;; "f2cl5.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 1409c1352feb 2013/03/24 20:44:50 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode)
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':array)
14 ;;; (:array-slicing t) (:declare-common nil)
15 ;;; (:float-format single-float))
17 (in-package "FFTPACK5")
20 (defun rfft2f (ldim l m r wsave lensav work lenwrk ier
)
21 (declare (type (array double-float
(*)) work wsave r
)
22 (type (f2cl-lib:integer4
) ier lenwrk lensav m l ldim
))
23 (f2cl-lib:with-multi-array-data
24 ((r double-float r-%data% r-%offset%
)
25 (wsave double-float wsave-%data% wsave-%offset%
)
26 (work double-float work-%data% work-%offset%
))
27 (prog ((i 0) (j 0) (ier1 0) (mwsav 0) (lwsav 0))
28 (declare (type (f2cl-lib:integer4
) lwsav mwsav ier1 j i
))
33 (f2cl-lib:flog
(f2cl-lib:freal l
)))
36 (f2cl-lib:int-add
(f2cl-lib:int-mul
2 m
)
38 (f2cl-lib:flog
(f2cl-lib:freal m
)))
41 ((< lensav
(f2cl-lib:int-add lwsav mwsav
))
47 (f2cl-lib:int-mul
2 (f2cl-lib:int-add
(f2cl-lib:f2cl
/ l
2) 1) m
))
52 ((< ldim
(f2cl-lib:int-mul
2 (f2cl-lib:int-add
(f2cl-lib:f2cl
/ l
2) 1)))
57 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
59 (rfftmf m ldim l
1 r
(f2cl-lib:int-mul m ldim
)
60 (f2cl-lib:array-slice wsave-%data%
66 (f2cl-lib:int
(f2cl-lib:flog
(f2cl-lib:freal l
)))
68 work
(* 2 (+ (the f2cl-lib
:integer4
(truncate l
2)) 1) m
) ier1
)
69 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8
77 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
81 (setf (f2cl-lib:fref r-%data%
82 ((f2cl-lib:int-add l
2) j
)
86 (f2cl-lib:fdo
(i l
(f2cl-lib:int-add i
(f2cl-lib:int-sub
1)))
89 (setf (f2cl-lib:fref r-%data%
90 ((f2cl-lib:int-add i
1) j
)
93 (f2cl-lib:fref r-%data%
98 (setf (f2cl-lib:fref r-%data%
(2 j
) ((1 ldim
) (1 m
)) r-%offset%
)
102 (f2cl-lib:make-compatible-seq
(array f2cl-lib
:complex16
(*))
104 (array double-float
(*)))))
105 (f2cl-lib:f2cl-copy-seq %copy-r r f2cl-lib
:complex16 double-float
)
107 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
109 (cfftmf (+ (the f2cl-lib
:integer4
(truncate l
2)) 1) 1 m
110 (the f2cl-lib
:integer4
(truncate ldim
2)) %copy-r
111 (the f2cl-lib
:integer4
(truncate (* m ldim
) 2))
112 (f2cl-lib:array-slice wsave-%data%
116 (f2cl-lib:flog
(f2cl-lib:freal l
)))
120 (f2cl-lib:int-add
(f2cl-lib:int-mul
2 m
)
122 (f2cl-lib:flog
(f2cl-lib:freal m
)))
124 work
(* 2 (+ (the f2cl-lib
:integer4
(truncate l
2)) 1) m
) ier1
)
125 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
128 (f2cl-lib:f2cl-copy-seq r %copy-r double-float f2cl-lib
:complex16
))
137 (return (values nil nil nil nil nil nil nil nil ier
)))))
139 (in-package #:cl-user
)
140 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
141 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
142 (setf (gethash 'fortran-to-lisp
::rfft2f
143 fortran-to-lisp
::*f2cl-function-info
*)
144 (fortran-to-lisp::make-f2cl-finfo
145 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
146 (fortran-to-lisp::integer4
) (array double-float
(*))
147 (array double-float
(*)) (fortran-to-lisp::integer4
)
148 (array double-float
(*)) (fortran-to-lisp::integer4
)
149 (fortran-to-lisp::integer4
))
150 :return-values
'(nil nil nil nil nil nil nil nil
151 fortran-to-lisp
::ier
)
152 :calls
'(fortran-to-lisp::cfftmf fortran-to-lisp
::rfftmf
153 fortran-to-lisp
::xerfft
))))