[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: (BUG LISP) at MIT-MC
- From: JW at MIT-MC (John C. Wenn)
- Date: Thu, 14 Aug 80 07:43:00 GMT
- Original-date: 14 AUG 1980 0343-EDT
There seems to be a bug in the complr.
I try to run the simple function:
(defun bitrev (j nu) (declare (fixnum j nu))
(do ((j1 j nextbase)
(n nu (// n 2))
(next-base (// j 2) (// next-base 2))
(k 0 (+ (* k 2) (- j1 (* 2 next-base)))))
((= 1 n) k)))
This runs fine when interpreted. When it is complied,
on the second and subsequent iterations, j1 and next-base
are set to the same value!!! J1 should equal (* 2 next-base).
What is going wrong, and how can I fix it?? Now I am
using the function written as a prog (GROAN!!).
thanx--
JW