Raymond Toy pushed to branch issue-156-take-2-nan-comparison at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/compiler/float-tran-dd.lisp
    ... ... @@ -670,7 +670,7 @@
    670 670
     
    
    671 671
     (declaim (inline dd<=))
    
    672 672
     (defun dd<= (a0 a1 b0 b1)
    
    673
    -  (or (dd> a0 a1 b0 b1)
    
    673
    +  (or (dd< a0 a1 b0 b1)
    
    674 674
           (dd= a0 a1 b0 b1)))
    
    675 675
     
    
    676 676
     (declaim (inline dd>=))
    
    ... ... @@ -699,15 +699,15 @@
    699 699
     	(kernel:double-double-lo b)))
    
    700 700
     
    
    701 701
     (deftransform <= ((a b) (vm::double-double-float vm::double-double-float) *)
    
    702
    -  `(dd<= (kernel:double-double-hi b)
    
    703
    -	 (kernel:double-double-lo b)
    
    704
    -	 (kernel:double-double-hi a)
    
    705
    -	 (kernel:double-double-lo a)))
    
    702
    +  `(dd<= (kernel:double-double-hi a)
    
    703
    +	 (kernel:double-double-lo a)
    
    704
    +	 (kernel:double-double-hi b)
    
    705
    +	 (kernel:double-double-lo b)))
    
    706 706
     
    
    707 707
     
    
    708 708
     (deftransform >= ((a b) (vm::double-double-float vm::double-double-float) *)
    
    709
    -  `(dd>= (kernel:double-double-hi b)
    
    710
    -	 (kernel:double-double-lo b)
    
    711
    -	 (kernel:double-double-hi a)
    
    712
    -	 (kernel:double-double-lo a)))
    
    709
    +  `(dd>= (kernel:double-double-hi a)
    
    710
    +	 (kernel:double-double-lo a)
    
    711
    +	 (kernel:double-double-hi b)
    
    712
    +	 (kernel:double-double-lo b)))
    
    713 713
     ) ; end progn