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 cmfgkf (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
) (sn 0.0d0
) (wai 0.0d0
)
30 (war 0.0d0
) (idlj 0) (lc 0) (l 0) (jc 0) (j 0) (m1 0) (m2 0) (ki 0)
31 (ipph 0) (ipp2 0) (m2s 0) (m1d 0))
32 (declare (type (double-float) war wai sn 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
))
215 (f2cl-lib:fref wa-%data%
216 (1 (f2cl-lib:int-sub l
1) 2)
224 (f2cl-lib:fref ch1-%data%
226 ((1 2) (1 in2
) (1 lid
) (1 ip
))
228 (setf (f2cl-lib:fref cc1-%data%
230 ((1 2) (1 in1
) (1 lid
) (1 ip
))
233 (f2cl-lib:fref ch1-%data%
235 ((1 2) (1 in2
) (1 lid
) (1 ip
))
238 (f2cl-lib:fref wa-%data%
239 (1 (f2cl-lib:int-sub l
1) 1)
247 (f2cl-lib:fref ch1-%data%
249 ((1 2) (1 in2
) (1 lid
) (1 ip
))
251 (setf (f2cl-lib:fref cc1-%data%
253 ((1 2) (1 in1
) (1 lid
) (1 ip
))
257 (f2cl-lib:fref wa-%data%
258 (1 (f2cl-lib:int-sub l
1) 2)
266 (f2cl-lib:fref ch1-%data%
268 ((1 2) (1 in2
) (1 lid
) (1 ip
))
272 (f2cl-lib:fdo
(j 3 (f2cl-lib:int-add j
1))
275 (setf jc
(f2cl-lib:int-sub ipp2 j
))
278 (f2cl-lib:int-mul
(f2cl-lib:int-sub l
1)
279 (f2cl-lib:int-sub j
1))
282 (f2cl-lib:fref wa-%data%
287 (f2cl-lib:int-sub
1)))
292 (f2cl-lib:fref wa-%data%
301 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
305 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
308 (setf m2
(f2cl-lib:int-add m2 im2
))
309 (setf (f2cl-lib:fref cc1-%data%
311 ((1 2) (1 in1
) (1 lid
) (1 ip
))
314 (f2cl-lib:fref cc1-%data%
316 ((1 2) (1 in1
) (1 lid
) (1 ip
))
319 (f2cl-lib:fref ch1-%data%
321 ((1 2) (1 in2
) (1 lid
) (1 ip
))
323 (setf (f2cl-lib:fref cc1-%data%
325 ((1 2) (1 in1
) (1 lid
) (1 ip
))
328 (f2cl-lib:fref cc1-%data%
330 ((1 2) (1 in1
) (1 lid
) (1 ip
))
333 (f2cl-lib:fref ch1-%data%
335 ((1 2) (1 in2
) (1 lid
) (1 ip
))
337 (setf (f2cl-lib:fref cc1-%data%
339 ((1 2) (1 in1
) (1 lid
) (1 ip
))
342 (f2cl-lib:fref cc1-%data%
344 ((1 2) (1 in1
) (1 lid
) (1 ip
))
347 (f2cl-lib:fref ch1-%data%
349 ((1 2) (1 in2
) (1 lid
) (1 ip
))
351 (setf (f2cl-lib:fref cc1-%data%
353 ((1 2) (1 in1
) (1 lid
) (1 ip
))
356 (f2cl-lib:fref cc1-%data%
358 ((1 2) (1 in1
) (1 lid
) (1 ip
))
361 (f2cl-lib:fref ch1-%data%
363 ((1 2) (1 in2
) (1 lid
) (1 ip
))
369 (if (> ido
1) (go label136
))
370 (setf sn
(/ 1.0d0
(f2cl-lib:freal
(f2cl-lib:int-mul ip l1
))))
371 (if (= na
1) (go label146
))
372 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
376 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
379 (setf m2
(f2cl-lib:int-add m2 im2
))
380 (setf (f2cl-lib:fref cc1-%data%
382 ((1 2) (1 in1
) (1 lid
) (1 ip
))
385 (f2cl-lib:fref cc1-%data%
387 ((1 2) (1 in1
) (1 lid
) (1 ip
))
389 (setf (f2cl-lib:fref cc1-%data%
391 ((1 2) (1 in1
) (1 lid
) (1 ip
))
394 (f2cl-lib:fref cc1-%data%
396 ((1 2) (1 in1
) (1 lid
) (1 ip
))
400 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
403 (setf jc
(f2cl-lib:int-sub ipp2 j
))
404 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
407 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
413 (f2cl-lib:fref cc1-%data%
415 ((1 2) (1 in1
) (1 lid
) (1 ip
))
417 (f2cl-lib:fref cc1-%data%
419 ((1 2) (1 in1
) (1 lid
) (1 ip
))
424 (f2cl-lib:fref cc1-%data%
426 ((1 2) (1 in1
) (1 lid
) (1 ip
))
428 (f2cl-lib:fref cc1-%data%
430 ((1 2) (1 in1
) (1 lid
) (1 ip
))
432 (setf (f2cl-lib:fref cc1-%data%
434 ((1 2) (1 in1
) (1 lid
) (1 ip
))
437 (setf (f2cl-lib:fref cc1-%data%
439 ((1 2) (1 in1
) (1 lid
) (1 ip
))
443 (f2cl-lib:fref cc1-%data%
445 ((1 2) (1 in1
) (1 lid
) (1 ip
))
447 (f2cl-lib:fref cc1-%data%
449 ((1 2) (1 in1
) (1 lid
) (1 ip
))
451 (setf (f2cl-lib:fref cc1-%data%
453 ((1 2) (1 in1
) (1 lid
) (1 ip
))
457 (f2cl-lib:fref cc1-%data%
459 ((1 2) (1 in1
) (1 lid
) (1 ip
))
461 (f2cl-lib:fref cc1-%data%
463 ((1 2) (1 in1
) (1 lid
) (1 ip
))
465 (setf (f2cl-lib:fref cc1-%data%
467 ((1 2) (1 in1
) (1 lid
) (1 ip
))
475 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
479 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
482 (setf m2
(f2cl-lib:int-add m2 im2
))
483 (setf (f2cl-lib:fref ch1-%data%
485 ((1 2) (1 in2
) (1 lid
) (1 ip
))
488 (f2cl-lib:fref cc1-%data%
490 ((1 2) (1 in1
) (1 lid
) (1 ip
))
492 (setf (f2cl-lib:fref ch1-%data%
494 ((1 2) (1 in2
) (1 lid
) (1 ip
))
497 (f2cl-lib:fref cc1-%data%
499 ((1 2) (1 in1
) (1 lid
) (1 ip
))
503 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
506 (setf jc
(f2cl-lib:int-sub ipp2 j
))
507 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
511 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
514 (setf m2
(f2cl-lib:int-add m2 im2
))
515 (setf (f2cl-lib:fref ch1-%data%
517 ((1 2) (1 in2
) (1 lid
) (1 ip
))
521 (f2cl-lib:fref cc1-%data%
523 ((1 2) (1 in1
) (1 lid
) (1 ip
))
525 (f2cl-lib:fref cc1-%data%
527 ((1 2) (1 in1
) (1 lid
) (1 ip
))
529 (setf (f2cl-lib:fref ch1-%data%
531 ((1 2) (1 in2
) (1 lid
) (1 ip
))
535 (f2cl-lib:fref cc1-%data%
537 ((1 2) (1 in1
) (1 lid
) (1 ip
))
539 (f2cl-lib:fref cc1-%data%
541 ((1 2) (1 in1
) (1 lid
) (1 ip
))
543 (setf (f2cl-lib:fref ch1-%data%
545 ((1 2) (1 in2
) (1 lid
) (1 ip
))
549 (f2cl-lib:fref cc1-%data%
551 ((1 2) (1 in1
) (1 lid
) (1 ip
))
553 (f2cl-lib:fref cc1-%data%
555 ((1 2) (1 in1
) (1 lid
) (1 ip
))
557 (setf (f2cl-lib:fref ch1-%data%
559 ((1 2) (1 in2
) (1 lid
) (1 ip
))
563 (f2cl-lib:fref cc1-%data%
565 ((1 2) (1 in1
) (1 lid
) (1 ip
))
567 (f2cl-lib:fref cc1-%data%
569 ((1 2) (1 in1
) (1 lid
) (1 ip
))
576 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
580 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
583 (setf m2
(f2cl-lib:int-add m2 im2
))
584 (setf (f2cl-lib:fref ch1-%data%
586 ((1 2) (1 in2
) (1 lid
) (1 ip
))
588 (f2cl-lib:fref cc1-%data%
590 ((1 2) (1 in1
) (1 lid
) (1 ip
))
592 (setf (f2cl-lib:fref ch1-%data%
594 ((1 2) (1 in2
) (1 lid
) (1 ip
))
596 (f2cl-lib:fref cc1-%data%
598 ((1 2) (1 in1
) (1 lid
) (1 ip
))
602 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
605 (setf jc
(f2cl-lib:int-sub ipp2 j
))
606 (f2cl-lib:fdo
(ki 1 (f2cl-lib:int-add ki
1))
610 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
613 (setf m2
(f2cl-lib:int-add m2 im2
))
614 (setf (f2cl-lib:fref ch1-%data%
616 ((1 2) (1 in2
) (1 lid
) (1 ip
))
619 (f2cl-lib:fref cc1-%data%
621 ((1 2) (1 in1
) (1 lid
) (1 ip
))
623 (f2cl-lib:fref cc1-%data%
625 ((1 2) (1 in1
) (1 lid
) (1 ip
))
627 (setf (f2cl-lib:fref ch1-%data%
629 ((1 2) (1 in2
) (1 lid
) (1 ip
))
632 (f2cl-lib:fref cc1-%data%
634 ((1 2) (1 in1
) (1 lid
) (1 ip
))
636 (f2cl-lib:fref cc1-%data%
638 ((1 2) (1 in1
) (1 lid
) (1 ip
))
640 (setf (f2cl-lib:fref ch1-%data%
642 ((1 2) (1 in2
) (1 lid
) (1 ip
))
645 (f2cl-lib:fref cc1-%data%
647 ((1 2) (1 in1
) (1 lid
) (1 ip
))
649 (f2cl-lib:fref cc1-%data%
651 ((1 2) (1 in1
) (1 lid
) (1 ip
))
653 (setf (f2cl-lib:fref ch1-%data%
655 ((1 2) (1 in2
) (1 lid
) (1 ip
))
658 (f2cl-lib:fref cc1-%data%
660 ((1 2) (1 in1
) (1 lid
) (1 ip
))
662 (f2cl-lib:fref cc1-%data%
664 ((1 2) (1 in1
) (1 lid
) (1 ip
))
669 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
672 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
676 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
679 (setf m2
(f2cl-lib:int-add m2 im2
))
680 (setf (f2cl-lib:fref cc-%data%
682 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
684 (f2cl-lib:fref ch-%data%
686 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
688 (setf (f2cl-lib:fref cc-%data%
690 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
692 (f2cl-lib:fref ch-%data%
694 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
699 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
702 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
706 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
709 (setf m2
(f2cl-lib:int-add m2 im2
))
710 (setf (f2cl-lib:fref cc-%data%
712 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
714 (f2cl-lib:fref ch-%data%
716 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
718 (setf (f2cl-lib:fref cc-%data%
720 ((1 2) (1 in1
) (1 l1
) (1 ip
) (1 ido
))
722 (f2cl-lib:fref ch-%data%
724 ((1 2) (1 in2
) (1 l1
) (1 ido
) (1 ip
))
729 (f2cl-lib:fdo
(j 2 (f2cl-lib:int-add j
1))
732 (f2cl-lib:fdo
(i 2 (f2cl-lib:int-add i
1))
735 (f2cl-lib:fdo
(k 1 (f2cl-lib:int-add k
1))
739 (f2cl-lib:fdo
(m1 1 (f2cl-lib:int-add m1 im1
))
742 (setf m2
(f2cl-lib:int-add m2 im2
))
743 (setf (f2cl-lib:fref cc-%data%
745 ((1 2) (1 in1
) (1 l1
) (1 ip
)
750 (f2cl-lib:fref wa-%data%
751 (i (f2cl-lib:int-sub j
1) 1)
759 (f2cl-lib:fref ch-%data%
761 ((1 2) (1 in2
) (1 l1
) (1 ido
)
765 (f2cl-lib:fref wa-%data%
766 (i (f2cl-lib:int-sub j
1) 2)
774 (f2cl-lib:fref ch-%data%
776 ((1 2) (1 in2
) (1 l1
) (1 ido
)
779 (setf (f2cl-lib:fref cc-%data%
781 ((1 2) (1 in1
) (1 l1
) (1 ip
)
786 (f2cl-lib:fref wa-%data%
787 (i (f2cl-lib:int-sub j
1) 1)
795 (f2cl-lib:fref ch-%data%
797 ((1 2) (1 in2
) (1 l1
) (1 ido
)
801 (f2cl-lib:fref wa-%data%
802 (i (f2cl-lib:int-sub j
1) 2)
810 (f2cl-lib:fref ch-%data%
812 ((1 2) (1 in2
) (1 l1
) (1 ido
)
822 (values nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
)))))
824 (in-package #:cl-user
)
825 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
826 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
827 (setf (gethash 'fortran-to-lisp
::cmfgkf
828 fortran-to-lisp
::*f2cl-function-info
*)
829 (fortran-to-lisp::make-f2cl-finfo
830 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
831 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
832 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
833 (array double-float
(*)) (array double-float
(*))
834 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
835 (array double-float
(*)) (array double-float
(*))
836 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
837 (array double-float
(*)))
838 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil nil nil