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 double-float))
17 (in-package "HOMPACK")
20 (defun divp (xxxx yyyy zzzz ierr
)
21 (declare (type (f2cl-lib:integer4
) ierr
)
22 (type (array double-float
(*)) zzzz yyyy xxxx
))
23 (f2cl-lib:with-multi-array-data
24 ((xxxx double-float xxxx-%data% xxxx-%offset%
)
25 (yyyy double-float yyyy-%data% yyyy-%offset%
)
26 (zzzz double-float zzzz-%data% zzzz-%offset%
))
27 (prog ((denom 0.0) (xnum 0.0))
28 (declare (type (double-float) xnum denom
))
32 (* (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
)
33 (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
))
34 (* (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
)
35 (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
))))
38 (* (f2cl-lib:fref xxxx-%data%
(1) ((1 2)) xxxx-%offset%
)
39 (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
))
40 (* (f2cl-lib:fref xxxx-%data%
(2) ((1 2)) xxxx-%offset%
)
41 (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
))))
43 ((or (>= (abs denom
) 1.0f0
)
44 (and (< (abs denom
) 1.0f0
)
45 (< (f2cl-lib:f2cl
/ (abs xnum
) (f2cl-lib:d1mach
2))
47 (setf (f2cl-lib:fref zzzz-%data%
(1) ((1 2)) zzzz-%offset%
)
50 (setf (f2cl-lib:fref zzzz-%data%
(1) ((1 2)) zzzz-%offset%
)
55 (* (f2cl-lib:fref xxxx-%data%
(2) ((1 2)) xxxx-%offset%
)
56 (f2cl-lib:fref yyyy-%data%
(1) ((1 2)) yyyy-%offset%
))
57 (* (f2cl-lib:fref xxxx-%data%
(1) ((1 2)) xxxx-%offset%
)
58 (f2cl-lib:fref yyyy-%data%
(2) ((1 2)) yyyy-%offset%
))))
60 ((or (>= (abs denom
) 1.0f0
)
61 (and (< (abs denom
) 1.0f0
)
62 (< (f2cl-lib:f2cl
/ (abs xnum
) (f2cl-lib:d1mach
2))
64 (setf (f2cl-lib:fref zzzz-%data%
(2) ((1 2)) zzzz-%offset%
)
67 (setf (f2cl-lib:fref zzzz-%data%
(2) ((1 2)) zzzz-%offset%
)
72 (return (values nil nil nil ierr
)))))
74 (in-package #:cl-user
)
75 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
76 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
77 (setf (gethash 'fortran-to-lisp
::divp fortran-to-lisp
::*f2cl-function-info
*)
78 (fortran-to-lisp::make-f2cl-finfo
79 :arg-types
'((array double-float
(*)) (array double-float
(*))
80 (array double-float
(*)) (fortran-to-lisp::integer4
))
81 :return-values
'(nil nil nil fortran-to-lisp
::ierr
)
82 :calls
'(fortran-to-lisp::d1mach
))))