Changeset 3723
- Timestamp:
- 09/12/03 14:18:10 (19 years ago)
- Location:
- trunk/j/src/org/armedbear/lisp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/autoloads.lisp
r3695 r3723 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: autoloads.lisp,v 1.2 1 2003-09-11 01:44:45piso Exp $4 ;;; $Id: autoloads.lisp,v 1.22 2003-09-12 14:17:13 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 77 77 "numbers.lisp") 78 78 (autoload 'boole) 79 (autoload '(byte byte-size byte-position ldb ldb-test ) "ldb.lisp")79 (autoload '(byte byte-size byte-position ldb ldb-test dpb) "ldb.lisp") 80 80 (autoload 'lcm) -
trunk/j/src/org/armedbear/lisp/ldb.lisp
r3691 r3723 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: ldb.lisp,v 1. 1 2003-09-11 01:16:00piso Exp $4 ;;; $Id: ldb.lisp,v 1.2 2003-09-12 14:16:44 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 27 27 (cdr bytespec)) 28 28 29 (defun ldb (bytespec n)30 (logand (ash n(- (byte-position bytespec)))29 (defun ldb (bytespec integer) 30 (logand (ash integer (- (byte-position bytespec))) 31 31 (1- (ash 1 (byte-size bytespec))))) 32 32 33 (defun ldb-test (bytespec n) 34 (not (zerop (ldb bytespec n)))) 33 (defun ldb-test (bytespec integer) 34 (not (zerop (ldb bytespec integer)))) 35 36 (defun dpb (newbyte bytespec integer) 37 (let* ((size (byte-size bytespec)) 38 (position (byte-position bytespec)) 39 (mask (1- (ash 1 size)))) 40 (logior (logand integer (lognot (ash mask position))) 41 (ash (logand newbyte mask) position)))) -
trunk/j/src/org/armedbear/lisp/rt.lisp
r3722 r3723 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: rt.lisp,v 1.12 7 2003-09-12 13:51:30 piso Exp $4 ;;; $Id: rt.lisp,v 1.128 2003-09-12 14:18:10 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 207 207 "destructuring-bind" 208 208 "divide" 209 "dpb" 209 210 "ecase" 210 211 "elt"
Note: See TracChangeset
for help on using the changeset viewer.