From 85858b85b1fcf9f115ab3286f6e3c9cbf06cbb3d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 19 Aug 2007 20:47:19 +0000 Subject: * boot-pkg.lisp: New. * Makefile.pamphlet (${DEPSYS}): Depend on it (parsing.$(FASLEXT)): Likewise. (bookvol5.$(FASLEXT)): Likewise. (nocompil.$(FASLEXT)): Likewise. (bootfuns.$(FASLEXT)): Likewise. (boot-pkg.$(FASLEXT)): New rule. (boot-pkg.lisp): New rule; work around GCL+VPATH voodoo. (VPATH): Clear. * Makefile.in: Regenerate. * bootfuns.lisp.pamphlet: Don't define package "BOOT" here. Import "boot-pkg". (|printLoadMessages|): Move to setvart.boot.pamphlet. Move special functions to boot-pkg.lisp. Move get-current-directory to daase.lisp.pamphlet. * setvart.boot.pamphlet (printLoadMessages): Move from bootfuns.lisp.pamphlet. Write as Boot code. * daase.lisp.pamphlet (get-current-directory): Move from bootfuns.lisp.pamphlet --- src/interp/bootfuns.lisp.pamphlet | 98 +-------------------------------------- 1 file changed, 1 insertion(+), 97 deletions(-) (limited to 'src/interp/bootfuns.lisp.pamphlet') diff --git a/src/interp/bootfuns.lisp.pamphlet b/src/interp/bootfuns.lisp.pamphlet index ebf2d665..33b953e7 100644 --- a/src/interp/bootfuns.lisp.pamphlet +++ b/src/interp/bootfuns.lisp.pamphlet @@ -62,17 +62,7 @@ interpreter or algebra uses has to (cough, cough) appear here. <<*>>= <> -;; This is a horrible hack to work around a horrible bug in GCL -;; as reported here: -;; http://lists.gnu.org/archive/html/gcl-devel/2007-08/msg00004.html -#+:gcl (in-package "VMLISP") -#+:gcl (in-package "AxiomCore") - -(IMPORT-MODULE "hash") -(defpackage "BOOT" - #+:common-lisp (:use "COMMON-LISP") - #-:common-lisp (:use "LISP") - (:use "VMLISP" "AxiomCore")) +(IMPORT-MODULE "boot-pkg") @ @@ -112,79 +102,6 @@ offer it as extensions. #+:clisp (import 'ext:compiler-let) @ -\subsection{Missing DFLOAT Transcendental functions} - -These functions should be defined for DoubleFloat inputs but are not. -These are cheap and easy definitions that work but should be rewritten. -<>= -(defun sec (x) (/ 1 (cos x))) -(defun csc (x) (/ 1 (sin x))) -(defun acsc (x) (asin (/ 1 x))) -(defun asec (x) (acos (/ 1 x))) -(defun csch (x) (/ 1 (sinh x))) -(defun coth (x) (* (cosh x) (csch x))) -(defun sech (x) (/ 1 (cosh x))) -(defun acsch (x) (asinh (/ 1 x))) -(defun acoth (x) (atanh (/ 1 x))) -(defun asech (x) (acosh (/ 1 x))) -@ - -\subsection{The manexp fix} - -Contributed by Juergen Weiss from a suggestion by Arthur Norman. -This is a Mantissa and Exponent function. -<>= -#+(or :cmu :akcl :gcl) -(defun manexp (u) - (multiple-value-bind (f e s) - (decode-float u) - (cons (* s f) e))) - -@ - -\subsection{The arc cotangent function} - -Contributed by Juergen Weiss from Arthur Norman's CCL. -<>= -#+(or :cmu :akcl :gcl) -(defun acot (a) - (if (> a 0.0) - (if (> a 1.0) - (atan (/ 1.0 a)) - (- (/ pi 2.0) (atan a))) - (if (< a -1.0) - (- pi (atan (/ -1.0 a))) - (+ (/ pi 2.0) (atan (- a)))))) - -@ - -\subsection{The arc cotangent function} - -Contributed by Juergen Weiss from Arthur Norman's CCL. -<>= -#+(or :cmu :akcl :gcl) -(defun cot (a) - (if (or (> a 1000.0) (< a -1000.0)) - (/ (cos a) (sin a)) - (/ 1.0 (tan a)))) - -@ - -\subsection{The get-current-directory function} - -Contributed by Juergen Weiss. -<>= -#+:cmu -(defun get-current-directory () - (namestring (extensions::default-directory))) - -#+(or :akcl :gcl) -(defun get-current-directory () - (namestring (truename ""))) - -@ - - <<*>>= ; NAME: Boot Package @@ -575,19 +492,6 @@ for primitive domains. Also used by putInLocalDomainReferences and optCal.") (def-boot-val |$inputPromptType| '|step| "checked in MKPROMPT") (def-boot-val |$IOindex| 0 "step counter") -(defun |printLoadMessages| (u) - (if (memq u '(|%display%| |%describe%|)) - (if |$printLoadMsgs| "on" "off") - (seq - (setq |$printLoadMsgs| (and (listp u) (equal (car u) '|on|))) -#+:CCL (verbos (if |$printLoadMsgs| 2 0)) -))) - -<> -<> -<> -<> -<> @ \eject \begin{thebibliography}{99} -- cgit v1.2.3