Rename *ll* and *ul* to ll and ul in $defint
[maxima.git] / share / fftpack5 / lisp / rfft1f.lisp
blob2075addd775e165278de5bcc07aa9e3e3d9063a7
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)
11 ;;;
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 rfft1f (n inc r lenr wsave lensav work lenwrk ier)
21 (declare (type (array double-float (*)) work wsave r)
22 (type (f2cl-lib:integer4) ier lenwrk lensav lenr inc n))
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 ()
28 (declare)
29 (setf ier 0)
30 (cond
31 ((< lenr
32 (f2cl-lib:int-add
33 (f2cl-lib:int-mul inc (f2cl-lib:int-add n (f2cl-lib:int-sub 1)))
34 1))
35 (setf ier 1)
36 (xerfft "RFFT1F " 6))
37 ((< lensav
38 (f2cl-lib:int-add n
39 (f2cl-lib:int
40 (f2cl-lib:f2cl/
41 (f2cl-lib:flog (f2cl-lib:freal n))
42 (f2cl-lib:flog 2.0d0)))
43 4))
44 (setf ier 2)
45 (xerfft "RFFT1F " 8))
46 ((< lenwrk n)
47 (setf ier 3)
48 (xerfft "RFFT1F " 10)))
49 (if (= n 1) (go end_label))
50 (rfftf1 n inc r work wsave
51 (f2cl-lib:array-slice wsave-%data%
52 double-float
53 ((+ n 1))
54 ((1 lensav))
55 wsave-%offset%))
56 (go end_label)
57 end_label
58 (return (values nil nil nil nil nil nil nil nil ier)))))
60 (in-package #:cl-user)
61 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
62 (eval-when (:load-toplevel :compile-toplevel :execute)
63 (setf (gethash 'fortran-to-lisp::rfft1f
64 fortran-to-lisp::*f2cl-function-info*)
65 (fortran-to-lisp::make-f2cl-finfo
66 :arg-types '((fortran-to-lisp::integer4) (fortran-to-lisp::integer4)
67 (array double-float (*)) (fortran-to-lisp::integer4)
68 (array double-float (*)) (fortran-to-lisp::integer4)
69 (array double-float (*)) (fortran-to-lisp::integer4)
70 (fortran-to-lisp::integer4))
71 :return-values '(nil nil nil nil nil nil nil nil
72 fortran-to-lisp::ier)
73 :calls '(fortran-to-lisp::rfftf1 fortran-to-lisp::xerfft))))