projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.18.6: rename SB-PCL::FUNCTION-KEYWORD-PARAMETERS to CL:FUNCTION-KEYWORDS
[sbcl.git]
/
src
/
code
/
irrat.lisp
diff --git
a/src/code/irrat.lisp
b/src/code/irrat.lisp
index
5477d6d
..
65c96f1
100644
(file)
--- a/
src/code/irrat.lisp
+++ b/
src/code/irrat.lisp
@@
-95,7
+95,7
@@
(log (+ number (sqrt (- (* number number) 1.0d0))) #.(exp 1.0d0)))
(declaim (inline %atanh))
(defun %atanh (number)
(log (+ number (sqrt (- (* number number) 1.0d0))) #.(exp 1.0d0)))
(declaim (inline %atanh))
(defun %atanh (number)
- (let ((ratio (/ (1+ number) (1- number))))
+ (let ((ratio (/ (+ 1 number) (- 1 number))))
;; Were we effectively zero?
(if (= ratio -1.0d0)
0.0d0
;; Were we effectively zero?
(if (= ratio -1.0d0)
0.0d0
@@
-211,6
+211,7
@@
(when (zerop (logior y-ihi y-lo))
(return-from real-expt (coerce 1d0 rtype)))
;; +-NaN return x+y
(when (zerop (logior y-ihi y-lo))
(return-from real-expt (coerce 1d0 rtype)))
;; +-NaN return x+y
+ ;; FIXME: Hardcoded qNaN/sNaN values are not portable.
(when (or (> x-ihi #x7ff00000)
(and (= x-ihi #x7ff00000) (/= x-lo 0))
(> y-ihi #x7ff00000)
(when (or (> x-ihi #x7ff00000)
(and (= x-ihi #x7ff00000) (/= x-lo 0))
(> y-ihi #x7ff00000)