Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove iteration clause from LOOP body code #64

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions src/schubfach.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,15 @@
576460752303423478)))

(defparameter *%digits* (let ((ds (make-array 100 :element-type '(unsigned-byte 16)))
(i 0)
(j 0))
(declare (type (integer 0) i j))
(loop :while (< j 10)
:for k :of-type (integer 0) := 0
:do (loop :while (< k 10)
:do (setf (aref ds i)
(logior (ash (+ k (char-code #\0)) 8)
(ash (+ j (char-code #\0)) 0)))
(incf i)
(incf k))


(incf j))
ds))
(i 0))
(declare (type (integer 0) i))
(loop :for j :below 10
:do (loop :for k :below 10
:do (setf (aref ds i)
(logior (ash (+ k (char-code #\0)) 8)
(ash (+ j (char-code #\0)) 0)))
(incf i)))
ds))

(defparameter *%gs* (let* ((gs (make-array 1234 :element-type '(signed-byte 64)))
(i 0)
Expand Down
Loading