Raymond Toy pushed to branch issue-459-more-accurate-dd-complex-div at cmucl / cmucl
Commits:
-
7fc4e1cb
by Raymond Toy at 2026-01-10T19:13:14-08:00
1 changed file:
Changes:
| ... | ... | @@ -789,12 +789,12 @@ |
| 789 | 789 | (declare (,type s))
|
| 790 | 790 | ;; If a or b is big, scale down a and b.
|
| 791 | 791 | (when (>= ab ,+rbig+)
|
| 792 | - (setf x (/ x 2)
|
|
| 792 | + (setf x (* x 0.5d0)
|
|
| 793 | 793 | s (* s 2)))
|
| 794 | 794 | ;; If c or d is big, scale down c and d.
|
| 795 | 795 | (when (>= cd ,+rbig+)
|
| 796 | - (setf y (/ y 2)
|
|
| 797 | - s (/ s 2)))
|
|
| 796 | + (setf y (* y 0.5d0)
|
|
| 797 | + s (* s 0.5d0)))
|
|
| 798 | 798 | ;; If a or b is tiny, scale up a and b.
|
| 799 | 799 | (when (<= ab (* ,+rmin+ ,+2/eps+))
|
| 800 | 800 | (setf x (* x ,+be+)
|