0.9.1.20:
authorNathan Froyd <froydnj@cs.rice.edu>
Wed, 1 Jun 2005 22:31:34 +0000 (22:31 +0000)
committerNathan Froyd <froydnj@cs.rice.edu>
Wed, 1 Jun 2005 22:31:34 +0000 (22:31 +0000)
Fix typo in LOGAND-DERIVE-UNSIGNED-HIGH-BOUND (thanks to jsnell
  for testing and rtoy for his CMUCL work on the same).

(Since CMUCL has essentially the same code, a future commit
 will add similar derivers for LOGXOR.  A more idiomatic CL
 style will also be adopted.)

src/compiler/srctran.lisp
tests/float.pure.lisp
version.lisp-expr

index c8a7b20..982c382 100644 (file)
             ((not (zerop (logand (logand (lognot b) mask)
                                  d
                                  m)))
-             (let ((temp (logior (logand d (lognot b) mask)
+             (let ((temp (logior (logand d (lognot m) mask)
                                  (- m 1))))
                (when (>= temp c)
                  (setf d temp)
index c797f53..03b3cf9 100644 (file)
   (assert (raises-error? (scale-float 1.0d0 (1+ most-positive-fixnum))
                         floating-point-overflow)))
 
+;;; bug found by jsnell when nfroyd tried to implement better LOGAND
+;;; type derivation.
+(assert (= (integer-decode-float (coerce -1756510900000000000
+                                         'single-float))
+           12780299))
+
 ;;; MISC.564: no out-of-line %ATAN2 for constant folding
 (assert (typep
   (funcall
index 457e504..f9e2c4d 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.1.19"
+"0.9.1.20"