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 cmf2kf (lot ido l1 na cc im1 in1 ch im2 in2 wa
)
21 (declare (type (array double-float
(*)) wa ch cc
)
22 (type (f2cl-lib:integer4
) in2 im2 in1 im1 na l1 ido lot
))
23 (f2cl-lib:with-multi-array-data
24 ((cc double-float cc-%data% cc-%offset%
)
25 (ch double-float ch-%data% ch-%offset%
)
26 (wa double-float wa-%data% wa-%offset%
))
27 (prog ((ti2 0.0d0
) (tr2 0.0d0
) (i 0) (m2 0) (chold2 0.0d0
) (chold1 0.0d0
)
28 (m1 0) (k 0) (sn 0.0d0
) (m2s 0) (m1d 0))
29 (declare (type (f2cl-lib:integer4
) m1d m2s k m1 m2 i
)
30 (type (double-float) sn chold1 chold2 tr2 ti2
))
32 (f2cl-lib:int-add
(f2cl-lib:int-mul
(f2cl-lib:int-sub lot
1) im1
)
34 (setf m2s
(f2cl-lib:int-sub
1 im2
))
35 (if (> ido
1) (go label102
))
36 (setf sn
(/ 1.0d0
(f2cl-lib:freal
(f2cl-lib:int-mul
2 l1
))))
37 (if (= na
1) (go label106
))
38 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
41 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
47 (f2cl-lib:fref cc-%data%
49 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
51 (f2cl-lib:fref cc-%data%
53 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
55 (setf (f2cl-lib:fref cc-%data%
57 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
61 (f2cl-lib:fref cc-%data%
63 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
65 (f2cl-lib:fref cc-%data%
67 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
69 (setf (f2cl-lib:fref cc-%data%
71 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
77 (f2cl-lib:fref cc-%data%
79 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
81 (f2cl-lib:fref cc-%data%
83 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
85 (setf (f2cl-lib:fref cc-%data%
87 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
91 (f2cl-lib:fref cc-%data%
93 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
95 (f2cl-lib:fref cc-%data%
97 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
99 (setf (f2cl-lib:fref cc-%data%
101 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
108 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
112 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
115 (setf m2
(f2cl-lib:int-add m2 im2
))
116 (setf (f2cl-lib:fref ch-%data%
118 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
122 (f2cl-lib:fref cc-%data%
124 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
126 (f2cl-lib:fref cc-%data%
128 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
130 (setf (f2cl-lib:fref ch-%data%
132 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
136 (f2cl-lib:fref cc-%data%
138 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
140 (f2cl-lib:fref cc-%data%
142 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
144 (setf (f2cl-lib:fref ch-%data%
146 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
150 (f2cl-lib:fref cc-%data%
152 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
154 (f2cl-lib:fref cc-%data%
156 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
158 (setf (f2cl-lib:fref ch-%data%
160 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
164 (f2cl-lib:fref cc-%data%
166 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
168 (f2cl-lib:fref cc-%data%
170 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
176 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
180 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
183 (setf m2
(f2cl-lib:int-add m2 im2
))
184 (setf (f2cl-lib:fref ch-%data%
186 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
189 (f2cl-lib:fref cc-%data%
191 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
193 (f2cl-lib:fref cc-%data%
195 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
197 (setf (f2cl-lib:fref ch-%data%
199 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
202 (f2cl-lib:fref cc-%data%
204 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
206 (f2cl-lib:fref cc-%data%
208 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
210 (setf (f2cl-lib:fref ch-%data%
212 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
215 (f2cl-lib:fref cc-%data%
217 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
219 (f2cl-lib:fref cc-%data%
221 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
223 (setf (f2cl-lib:fref ch-%data%
225 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
228 (f2cl-lib:fref cc-%data%
230 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
232 (f2cl-lib:fref cc-%data%
234 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
238 (f2cl-lib:fdo
(i 2 (f2cl-lib:int-add i
1))
241 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
245 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
248 (setf m2
(f2cl-lib:int-add m2 im2
))
249 (setf (f2cl-lib:fref ch-%data%
251 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
254 (f2cl-lib:fref cc-%data%
256 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
258 (f2cl-lib:fref cc-%data%
260 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
264 (f2cl-lib:fref cc-%data%
266 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
268 (f2cl-lib:fref cc-%data%
270 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
272 (setf (f2cl-lib:fref ch-%data%
274 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
277 (f2cl-lib:fref cc-%data%
279 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
281 (f2cl-lib:fref cc-%data%
283 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
287 (f2cl-lib:fref cc-%data%
289 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
291 (f2cl-lib:fref cc-%data%
293 ((1 2) (1 in1
) (1 l1
) (1 ido
) (1 2))
295 (setf (f2cl-lib:fref ch-%data%
297 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
301 (f2cl-lib:fref wa-%data%
303 ((1 ido
) (1 1) (1 2))
307 (f2cl-lib:fref wa-%data%
309 ((1 ido
) (1 1) (1 2))
312 (setf (f2cl-lib:fref ch-%data%
314 ((1 2) (1 in2
) (1 l1
) (1 2) (1 ido
))
318 (f2cl-lib:fref wa-%data%
320 ((1 ido
) (1 1) (1 2))
324 (f2cl-lib:fref wa-%data%
326 ((1 ido
) (1 1) (1 2))
334 (return (values nil nil nil nil nil nil nil nil nil nil nil
)))))
336 (in-package #:cl-user
)
337 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
338 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
339 (setf (gethash 'fortran-to-lisp
::cmf2kf
340 fortran-to-lisp
::*f2cl-function-info
*)
341 (fortran-to-lisp::make-f2cl-finfo
342 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
343 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
344 (array double-float
(*)) (fortran-to-lisp::integer4
)
345 (fortran-to-lisp::integer4
) (array double-float
(*))
346 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
347 (array double-float
(*)))
348 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil
)