(let ((function (symbolicate "%" (string-upcase name))))
`(progn
(proclaim '(inline ,function))
- (sb!alien:def-alien-routine (,name ,function) double-float
+ (sb!alien:define-alien-routine (,name ,function) double-float
,@(let ((results nil))
(dotimes (i num-args (nreverse results))
(push (list (intern (format nil "ARG-~D" i))
) ; EVAL-WHEN
\f
;;;; stubs for the Unix math library
-
-;;; Please refer to the Unix man pages for details about these routines.
+;;;;
+;;;; Many of these are unnecessary on the X86 because they're built
+;;;; into the FPU.
;;; trigonometric
#!-x86 (def-math-rtn "sin" 1)
;;;;
;;;; The original CMU CL code requested:
;;;; Please send any bug reports, comments, or improvements to
-;;;; Raymond Toy at toy@rtp.ericsson.se.
+;;;; Raymond Toy at <email address deleted during 2002 spam avalanche>.
;;; FIXME: In SBCL, the floating point infinity constants like
;;; SB!EXT:DOUBLE-FLOAT-POSITIVE-INFINITY aren't available as
#-(or linux hpux) #.(/ (asinh most-positive-double-float) 4d0)
;; This is more accurate under linux.
#+(or linux hpux) #.(/ (+ (log 2.0d0)
- (log most-positive-double-float)) 4d0))
+ (log most-positive-double-float))
+ 4d0))
(coerce-to-complex-type (float-sign x)
(float-sign y) z))
(t