Add some basic letsimp tests based on bug #3950
[maxima.git] / share / colnew / lisp / shiftb.lisp
blob3bcaeee5cc31cc5fcf551faa78d943834fd5d89f
1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 1.221 2010/05/26 19:25:52 rtoy Exp $"
3 ;;; "f2cl2.l,v 1.37 2008/02/22 22:19:33 rtoy Exp $"
4 ;;; "f2cl3.l,v 1.6 2008/02/22 22:19:33 rtoy Exp $"
5 ;;; "f2cl4.l,v 1.7 2008/02/22 22:19:34 rtoy Exp $"
6 ;;; "f2cl5.l,v 1.204 2010/02/23 05:21:30 rtoy Exp $"
7 ;;; "f2cl6.l,v 1.48 2008/08/24 00:56:27 rtoy Exp $"
8 ;;; "macros.l,v 1.114 2010/05/17 01:42:14 rtoy Exp $")
10 ;;; Using Lisp CMU Common Lisp CVS Head 2010-05-25 18:21:07 (20A 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 double-float))
17 (in-package :colnew)
20 (defun shiftb (ai nrowi ncoli last$ ai1 nrowi1 ncoli1)
21 (declare (type (f2cl-lib:integer4) ncoli1 nrowi1 last$ ncoli nrowi)
22 (type (array double-float (*)) ai1 ai))
23 (f2cl-lib:with-multi-array-data
24 ((ai double-float ai-%data% ai-%offset%)
25 (ai1 double-float ai1-%data% ai1-%offset%))
26 (prog ((j 0) (jmax 0) (jmaxp1 0) (m 0) (mmax 0))
27 (declare (type (f2cl-lib:integer4) mmax m jmaxp1 jmax j))
28 (setf mmax (f2cl-lib:int-sub nrowi last$))
29 (setf jmax (f2cl-lib:int-sub ncoli last$))
30 (if (or (< mmax 1) (< jmax 1)) (go end_label))
31 (f2cl-lib:fdo (j 1 (f2cl-lib:int-add j 1))
32 ((> j jmax) nil)
33 (tagbody
34 (f2cl-lib:fdo (m 1 (f2cl-lib:int-add m 1))
35 ((> m mmax) nil)
36 (tagbody
37 (setf (f2cl-lib:fref ai1-%data%
38 (m j)
39 ((1 nrowi1) (1 ncoli1))
40 ai1-%offset%)
41 (f2cl-lib:fref ai-%data%
42 ((f2cl-lib:int-add last$ m)
43 (f2cl-lib:int-add last$ j))
44 ((1 nrowi) (1 ncoli))
45 ai-%offset%))))))
46 label10
47 (if (= jmax ncoli1) (go end_label))
48 (setf jmaxp1 (f2cl-lib:int-add jmax 1))
49 (f2cl-lib:fdo (j jmaxp1 (f2cl-lib:int-add j 1))
50 ((> j ncoli1) nil)
51 (tagbody
52 (f2cl-lib:fdo (m 1 (f2cl-lib:int-add m 1))
53 ((> m mmax) nil)
54 (tagbody
55 (setf (f2cl-lib:fref ai1-%data%
56 (m j)
57 ((1 nrowi1) (1 ncoli1))
58 ai1-%offset%)
59 0.0)))))
60 label20
61 (go end_label)
62 end_label
63 (return (values nil nil nil nil nil nil nil)))))
65 (in-package #-gcl #:cl-user #+gcl "CL-USER")
66 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
67 (eval-when (:load-toplevel :compile-toplevel :execute)
68 (setf (gethash 'fortran-to-lisp::shiftb
69 fortran-to-lisp::*f2cl-function-info*)
70 (fortran-to-lisp::make-f2cl-finfo
71 :arg-types '((array double-float (*)) (fortran-to-lisp::integer4)
72 (fortran-to-lisp::integer4) (fortran-to-lisp::integer4)
73 (array double-float (*)) (fortran-to-lisp::integer4)
74 (fortran-to-lisp::integer4))
75 :return-values '(nil nil nil nil nil nil nil)
76 :calls 'nil)))