Raymond Toy pushed to branch issue-459-more-accurate-dd-complex-div at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/code/numbers.lisp
    ... ... @@ -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+)