projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.7.5: allow WITH-INTERRUPTS inside "system locked" sections
[sbcl.git]
/
src
/
code
/
array.lisp
diff --git
a/src/code/array.lisp
b/src/code/array.lisp
index
39850a6
..
286d197
100644
(file)
--- a/
src/code/array.lisp
+++ b/
src/code/array.lisp
@@
-56,6
+56,7
@@
(values vector index))
(values array index)))
(values vector index))
(values array index)))
+(declaim (inline simple-vector-compare-and-swap))
(defun simple-vector-compare-and-swap (vector index old new)
#!+(or x86 x86-64)
(%simple-vector-compare-and-swap vector
(defun simple-vector-compare-and-swap (vector index old new)
#!+(or x86 x86-64)
(%simple-vector-compare-and-swap vector
@@
-349,7
+350,7
@@
of specialized arrays is supported."
(:little-endian
(- sb!vm:other-pointer-lowtag))
(:big-endian
(:little-endian
(- sb!vm:other-pointer-lowtag))
(:big-endian
- (- (1- n-word-bytes) sb!vm:other-pointer-lowtag)))))
+ (- (1- sb!vm:n-word-bytes) sb!vm:other-pointer-lowtag)))))
;; WIDETAG-OF needs extra code to handle
;; LIST and FUNCTION lowtags. We're only
;; dispatching on other pointers, so let's
;; WIDETAG-OF needs extra code to handle
;; LIST and FUNCTION lowtags. We're only
;; dispatching on other pointers, so let's
@@
-481,6
+482,9
@@
of specialized arrays is supported."
(defun data-vector-ref (array index)
(hairy-data-vector-ref array index))
(defun data-vector-ref (array index)
(hairy-data-vector-ref array index))
+(defun data-vector-ref-with-offset (array index offset)
+ (hairy-data-vector-ref array (+ index offset)))
+
;;; SUBSCRIPTS has a dynamic-extent list structure and is destroyed
(defun %array-row-major-index (array subscripts
&optional (invalid-index-error-p t))
;;; SUBSCRIPTS has a dynamic-extent list structure and is destroyed
(defun %array-row-major-index (array subscripts
&optional (invalid-index-error-p t))