projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.2.31:
[sbcl.git]
/
src
/
code
/
cross-byte.lisp
diff --git
a/src/code/cross-byte.lisp
b/src/code/cross-byte.lisp
index
b9b8178
..
4b6f4a2
100644
(file)
--- a/
src/code/cross-byte.lisp
+++ b/
src/code/cross-byte.lisp
@@
-39,6
+39,11
@@
(defun sb!xc:deposit-field (new cross-byte int)
(cl:deposit-field new (uncross-byte cross-byte) int))
(defun sb!xc:deposit-field (new cross-byte int)
(cl:deposit-field new (uncross-byte cross-byte) int))
+(defun sb!c::mask-signed-field (size integer)
+ (if (logbitp (1- size) integer)
+ (dpb integer (byte size 0) -1)
+ (ldb (byte size 0) integer)))
+
(define-setf-expander sb!xc:ldb (cross-byte int &environment env)
(multiple-value-bind (temps vals stores store-form access-form)
(get-setf-expansion int env)
(define-setf-expander sb!xc:ldb (cross-byte int &environment env)
(multiple-value-bind (temps vals stores store-form access-form)
(get-setf-expansion int env)