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 cmfgkb (lot ido ip l1 lid na cc cc1 im1 in1 ch ch1 im2 in2 wa
)
21 (declare (type (array double-float
(*)) wa ch1 ch cc1 cc
)
22 (type (f2cl-lib:integer4
) in2 im2 in1 im1 na lid l1 ip ido lot
))
23 (f2cl-lib:with-multi-array-data
24 ((cc double-float cc-%data% cc-%offset%
)
25 (cc1 double-float cc1-%data% cc1-%offset%
)
26 (ch double-float ch-%data% ch-%offset%
)
27 (ch1 double-float ch1-%data% ch1-%offset%
)
28 (wa double-float wa-%data% wa-%offset%
))
29 (prog ((k 0) (i 0) (chold2 0.0d0
) (chold1 0.0d0
) (wai 0.0d0
) (war 0.0d0
)
30 (idlj 0) (lc 0) (l 0) (jc 0) (j 0) (m1 0) (m2 0) (ki 0) (ipph 0)
31 (ipp2 0) (m2s 0) (m1d 0))
32 (declare (type (double-float) war wai chold1 chold2
)
33 (type (f2cl-lib:integer4
) m1d m2s ipp2 ipph ki m2 m1 j jc l lc
36 (f2cl-lib:int-add
(f2cl-lib:int-mul
(f2cl-lib:int-sub lot
1) im1
)
38 (setf m2s
(f2cl-lib:int-sub
1 im2
))
39 (setf ipp2
(f2cl-lib:int-add ip
2))
40 (setf ipph
(the f2cl-lib
:integer4
(truncate (+ ip
1) 2)))
41 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
45 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
48 (setf m2
(f2cl-lib:int-add m2 im2
))
49 (setf (f2cl-lib:fref ch1-%data%
51 ((1 2) (1 in2
) (1 lid
) (1 ip
))
53 (f2cl-lib:fref cc1-%data%
55 ((1 2) (1 in1
) (1 lid
) (1 ip
))
57 (setf (f2cl-lib:fref ch1-%data%
59 ((1 2) (1 in2
) (1 lid
) (1 ip
))
61 (f2cl-lib:fref cc1-%data%
63 ((1 2) (1 in1
) (1 lid
) (1 ip
))
67 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
70 (setf jc
(f2cl-lib:int-sub ipp2 j
))
71 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
75 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
78 (setf m2
(f2cl-lib:int-add m2 im2
))
79 (setf (f2cl-lib:fref ch1-%data%
81 ((1 2) (1 in2
) (1 lid
) (1 ip
))
84 (f2cl-lib:fref cc1-%data%
86 ((1 2) (1 in1
) (1 lid
) (1 ip
))
88 (f2cl-lib:fref cc1-%data%
90 ((1 2) (1 in1
) (1 lid
) (1 ip
))
92 (setf (f2cl-lib:fref ch1-%data%
94 ((1 2) (1 in2
) (1 lid
) (1 ip
))
97 (f2cl-lib:fref cc1-%data%
99 ((1 2) (1 in1
) (1 lid
) (1 ip
))
101 (f2cl-lib:fref cc1-%data%
103 ((1 2) (1 in1
) (1 lid
) (1 ip
))
105 (setf (f2cl-lib:fref ch1-%data%
107 ((1 2) (1 in2
) (1 lid
) (1 ip
))
110 (f2cl-lib:fref cc1-%data%
112 ((1 2) (1 in1
) (1 lid
) (1 ip
))
114 (f2cl-lib:fref cc1-%data%
116 ((1 2) (1 in1
) (1 lid
) (1 ip
))
118 (setf (f2cl-lib:fref ch1-%data%
120 ((1 2) (1 in2
) (1 lid
) (1 ip
))
123 (f2cl-lib:fref cc1-%data%
125 ((1 2) (1 in1
) (1 lid
) (1 ip
))
127 (f2cl-lib:fref cc1-%data%
129 ((1 2) (1 in1
) (1 lid
) (1 ip
))
134 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
137 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
141 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
144 (setf m2
(f2cl-lib:int-add m2 im2
))
145 (setf (f2cl-lib:fref cc1-%data%
147 ((1 2) (1 in1
) (1 lid
) (1 ip
))
150 (f2cl-lib:fref cc1-%data%
152 ((1 2) (1 in1
) (1 lid
) (1 ip
))
154 (f2cl-lib:fref ch1-%data%
156 ((1 2) (1 in2
) (1 lid
) (1 ip
))
158 (setf (f2cl-lib:fref cc1-%data%
160 ((1 2) (1 in1
) (1 lid
) (1 ip
))
163 (f2cl-lib:fref cc1-%data%
165 ((1 2) (1 in1
) (1 lid
) (1 ip
))
167 (f2cl-lib:fref ch1-%data%
169 ((1 2) (1 in2
) (1 lid
) (1 ip
))
174 (f2cl-lib:fdo
(l 2 (f2cl-lib:int-add l
1))
177 (setf lc
(f2cl-lib:int-sub ipp2 l
))
178 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
182 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
185 (setf m2
(f2cl-lib:int-add m2 im2
))
186 (setf (f2cl-lib:fref cc1-%data%
188 ((1 2) (1 in1
) (1 lid
) (1 ip
))
191 (f2cl-lib:fref ch1-%data%
193 ((1 2) (1 in2
) (1 lid
) (1 ip
))
196 (f2cl-lib:fref wa-%data%
197 (1 (f2cl-lib:int-sub l
1) 1)
205 (f2cl-lib:fref ch1-%data%
207 ((1 2) (1 in2
) (1 lid
) (1 ip
))
209 (setf (f2cl-lib:fref cc1-%data%
211 ((1 2) (1 in1
) (1 lid
) (1 ip
))
214 (f2cl-lib:fref wa-%data%
215 (1 (f2cl-lib:int-sub l
1) 2)
223 (f2cl-lib:fref ch1-%data%
225 ((1 2) (1 in2
) (1 lid
) (1 ip
))
227 (setf (f2cl-lib:fref cc1-%data%
229 ((1 2) (1 in1
) (1 lid
) (1 ip
))
232 (f2cl-lib:fref ch1-%data%
234 ((1 2) (1 in2
) (1 lid
) (1 ip
))
237 (f2cl-lib:fref wa-%data%
238 (1 (f2cl-lib:int-sub l
1) 1)
246 (f2cl-lib:fref ch1-%data%
248 ((1 2) (1 in2
) (1 lid
) (1 ip
))
250 (setf (f2cl-lib:fref cc1-%data%
252 ((1 2) (1 in1
) (1 lid
) (1 ip
))
255 (f2cl-lib:fref wa-%data%
256 (1 (f2cl-lib:int-sub l
1) 2)
264 (f2cl-lib:fref ch1-%data%
266 ((1 2) (1 in2
) (1 lid
) (1 ip
))
270 (f2cl-lib:fdo
(j 3 (f2cl-lib:int-add j
1))
273 (setf jc
(f2cl-lib:int-sub ipp2 j
))
276 (f2cl-lib:int-mul
(f2cl-lib:int-sub l
1)
277 (f2cl-lib:int-sub j
1))
280 (f2cl-lib:fref wa-%data%
285 (f2cl-lib:int-sub
1)))
289 (f2cl-lib:fref wa-%data%
294 (f2cl-lib:int-sub
1)))
297 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
301 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
304 (setf m2
(f2cl-lib:int-add m2 im2
))
305 (setf (f2cl-lib:fref cc1-%data%
307 ((1 2) (1 in1
) (1 lid
) (1 ip
))
310 (f2cl-lib:fref cc1-%data%
312 ((1 2) (1 in1
) (1 lid
) (1 ip
))
315 (f2cl-lib:fref ch1-%data%
317 ((1 2) (1 in2
) (1 lid
) (1 ip
))
319 (setf (f2cl-lib:fref cc1-%data%
321 ((1 2) (1 in1
) (1 lid
) (1 ip
))
324 (f2cl-lib:fref cc1-%data%
326 ((1 2) (1 in1
) (1 lid
) (1 ip
))
329 (f2cl-lib:fref ch1-%data%
331 ((1 2) (1 in2
) (1 lid
) (1 ip
))
333 (setf (f2cl-lib:fref cc1-%data%
335 ((1 2) (1 in1
) (1 lid
) (1 ip
))
338 (f2cl-lib:fref cc1-%data%
340 ((1 2) (1 in1
) (1 lid
) (1 ip
))
343 (f2cl-lib:fref ch1-%data%
345 ((1 2) (1 in2
) (1 lid
) (1 ip
))
347 (setf (f2cl-lib:fref cc1-%data%
349 ((1 2) (1 in1
) (1 lid
) (1 ip
))
352 (f2cl-lib:fref cc1-%data%
354 ((1 2) (1 in1
) (1 lid
) (1 ip
))
357 (f2cl-lib:fref ch1-%data%
359 ((1 2) (1 in2
) (1 lid
) (1 ip
))
365 (if (or (> ido
1) (= na
1)) (go label136
))
366 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
369 (setf jc
(f2cl-lib:int-sub ipp2 j
))
370 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
373 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
378 (f2cl-lib:fref cc1-%data%
380 ((1 2) (1 in1
) (1 lid
) (1 ip
))
382 (f2cl-lib:fref cc1-%data%
384 ((1 2) (1 in1
) (1 lid
) (1 ip
))
388 (f2cl-lib:fref cc1-%data%
390 ((1 2) (1 in1
) (1 lid
) (1 ip
))
392 (f2cl-lib:fref cc1-%data%
394 ((1 2) (1 in1
) (1 lid
) (1 ip
))
396 (setf (f2cl-lib:fref cc1-%data%
398 ((1 2) (1 in1
) (1 lid
) (1 ip
))
401 (setf (f2cl-lib:fref cc1-%data%
403 ((1 2) (1 in1
) (1 lid
) (1 ip
))
406 (f2cl-lib:fref cc1-%data%
408 ((1 2) (1 in1
) (1 lid
) (1 ip
))
410 (f2cl-lib:fref cc1-%data%
412 ((1 2) (1 in1
) (1 lid
) (1 ip
))
414 (setf (f2cl-lib:fref cc1-%data%
416 ((1 2) (1 in1
) (1 lid
) (1 ip
))
419 (f2cl-lib:fref cc1-%data%
421 ((1 2) (1 in1
) (1 lid
) (1 ip
))
423 (f2cl-lib:fref cc1-%data%
425 ((1 2) (1 in1
) (1 lid
) (1 ip
))
427 (setf (f2cl-lib:fref cc1-%data%
429 ((1 2) (1 in1
) (1 lid
) (1 ip
))
437 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
441 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
444 (setf m2
(f2cl-lib:int-add m2 im2
))
445 (setf (f2cl-lib:fref ch1-%data%
447 ((1 2) (1 in2
) (1 lid
) (1 ip
))
449 (f2cl-lib:fref cc1-%data%
451 ((1 2) (1 in1
) (1 lid
) (1 ip
))
453 (setf (f2cl-lib:fref ch1-%data%
455 ((1 2) (1 in2
) (1 lid
) (1 ip
))
457 (f2cl-lib:fref cc1-%data%
459 ((1 2) (1 in1
) (1 lid
) (1 ip
))
463 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
466 (setf jc
(f2cl-lib:int-sub ipp2 j
))
467 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
471 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
474 (setf m2
(f2cl-lib:int-add m2 im2
))
475 (setf (f2cl-lib:fref ch1-%data%
477 ((1 2) (1 in2
) (1 lid
) (1 ip
))
480 (f2cl-lib:fref cc1-%data%
482 ((1 2) (1 in1
) (1 lid
) (1 ip
))
484 (f2cl-lib:fref cc1-%data%
486 ((1 2) (1 in1
) (1 lid
) (1 ip
))
488 (setf (f2cl-lib:fref ch1-%data%
490 ((1 2) (1 in2
) (1 lid
) (1 ip
))
493 (f2cl-lib:fref cc1-%data%
495 ((1 2) (1 in1
) (1 lid
) (1 ip
))
497 (f2cl-lib:fref cc1-%data%
499 ((1 2) (1 in1
) (1 lid
) (1 ip
))
501 (setf (f2cl-lib:fref ch1-%data%
503 ((1 2) (1 in2
) (1 lid
) (1 ip
))
506 (f2cl-lib:fref cc1-%data%
508 ((1 2) (1 in1
) (1 lid
) (1 ip
))
510 (f2cl-lib:fref cc1-%data%
512 ((1 2) (1 in1
) (1 lid
) (1 ip
))
514 (setf (f2cl-lib:fref ch1-%data%
516 ((1 2) (1 in2
) (1 lid
) (1 ip
))
519 (f2cl-lib:fref cc1-%data%
521 ((1 2) (1 in1
) (1 lid
) (1 ip
))
523 (f2cl-lib:fref cc1-%data%
525 ((1 2) (1 in1
) (1 lid
) (1 ip
))
530 (if (= ido
1) (go end_label
))
531 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
534 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
538 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
541 (setf m2
(f2cl-lib:int-add m2 im2
))
542 (setf (f2cl-lib:fref cc-%data%
544 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
546 (f2cl-lib:fref ch-%data%
548 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
550 (setf (f2cl-lib:fref cc-%data%
552 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
554 (f2cl-lib:fref ch-%data%
556 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
561 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
564 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
568 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
571 (setf m2
(f2cl-lib:int-add m2 im2
))
572 (setf (f2cl-lib:fref cc-%data%
574 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
576 (f2cl-lib:fref ch-%data%
578 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
580 (setf (f2cl-lib:fref cc-%data%
582 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
584 (f2cl-lib:fref ch-%data%
586 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
591 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
594 (f2cl-lib:fdo
(i 2 (f2cl-lib:int-add i
1))
597 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
601 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
604 (setf m2
(f2cl-lib:int-add m2 im2
))
605 (setf (f2cl-lib:fref cc-%data%
607 ((1 2) (1 in1
) (1 l1
) (1 ip
)
612 (f2cl-lib:fref wa-%data%
613 (i (f2cl-lib:int-sub j
1) 1)
621 (f2cl-lib:fref ch-%data%
623 ((1 2) (1 in2
) (1 l1
) (1 ido
)
627 (f2cl-lib:fref wa-%data%
628 (i (f2cl-lib:int-sub j
1) 2)
636 (f2cl-lib:fref ch-%data%
638 ((1 2) (1 in2
) (1 l1
) (1 ido
)
641 (setf (f2cl-lib:fref cc-%data%
643 ((1 2) (1 in1
) (1 l1
) (1 ip
)
648 (f2cl-lib:fref wa-%data%
649 (i (f2cl-lib:int-sub j
1) 1)
657 (f2cl-lib:fref ch-%data%
659 ((1 2) (1 in2
) (1 l1
) (1 ido
)
663 (f2cl-lib:fref wa-%data%
664 (i (f2cl-lib:int-sub j
1) 2)
672 (f2cl-lib:fref ch-%data%
674 ((1 2) (1 in2
) (1 l1
) (1 ido
)
684 (values nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
)))))
686 (in-package #:cl-user
)
687 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
688 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
689 (setf (gethash 'fortran-to-lisp
::cmfgkb
690 fortran-to-lisp
::*f2cl-function-info
*)
691 (fortran-to-lisp::make-f2cl-finfo
692 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
693 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
694 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
695 (array double-float
(*)) (array double-float
(*))
696 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
697 (array double-float
(*)) (array double-float
(*))
698 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
699 (array double-float
(*)))
700 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil nil nil