aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/semantic/wisent/comp.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el
index 837222ad4b1..74ca4f4a437 100644
--- a/lisp/cedet/semantic/wisent/comp.el
+++ b/lisp/cedet/semantic/wisent/comp.el
@@ -142,8 +142,8 @@ If optional LEFT is non-nil insert spaces on left."
142(defconst wisent-BITS-PER-WORD 142(defconst wisent-BITS-PER-WORD
143 (let ((i 1) 143 (let ((i 1)
144 (do-shift (if (boundp 'most-positive-fixnum) 144 (do-shift (if (boundp 'most-positive-fixnum)
145 (lambda (i) (lsh most-positive-fixnum (- i))) 145 (lambda (i) (ash most-positive-fixnum (- i)))
146 (lambda (i) (lsh 1 i))))) 146 (lambda (i) (ash 1 i)))))
147 (while (not (zerop (funcall do-shift i))) 147 (while (not (zerop (funcall do-shift i)))
148 (setq i (1+ i))) 148 (setq i (1+ i)))
149 i)) 149 i))
@@ -156,18 +156,18 @@ If optional LEFT is non-nil insert spaces on left."
156 "X[I/BITS-PER-WORD] |= 1 << (I % BITS-PER-WORD)." 156 "X[I/BITS-PER-WORD] |= 1 << (I % BITS-PER-WORD)."
157 (let ((k (/ i wisent-BITS-PER-WORD))) 157 (let ((k (/ i wisent-BITS-PER-WORD)))
158 (aset x k (logior (aref x k) 158 (aset x k (logior (aref x k)
159 (lsh 1 (% i wisent-BITS-PER-WORD)))))) 159 (ash 1 (% i wisent-BITS-PER-WORD))))))
160 160
161(defsubst wisent-RESETBIT (x i) 161(defsubst wisent-RESETBIT (x i)
162 "X[I/BITS-PER-WORD] &= ~(1 << (I % BITS-PER-WORD))." 162 "X[I/BITS-PER-WORD] &= ~(1 << (I % BITS-PER-WORD))."
163 (let ((k (/ i wisent-BITS-PER-WORD))) 163 (let ((k (/ i wisent-BITS-PER-WORD)))
164 (aset x k (logand (aref x k) 164 (aset x k (logand (aref x k)
165 (lognot (lsh 1 (% i wisent-BITS-PER-WORD))))))) 165 (lognot (ash 1 (% i wisent-BITS-PER-WORD)))))))
166 166
167(defsubst wisent-BITISSET (x i) 167(defsubst wisent-BITISSET (x i)
168 "(X[I/BITS-PER-WORD] & (1 << (I % BITS-PER-WORD))) != 0." 168 "(X[I/BITS-PER-WORD] & (1 << (I % BITS-PER-WORD))) != 0."
169 (not (zerop (logand (aref x (/ i wisent-BITS-PER-WORD)) 169 (not (zerop (logand (aref x (/ i wisent-BITS-PER-WORD))
170 (lsh 1 (% i wisent-BITS-PER-WORD)))))) 170 (ash 1 (% i wisent-BITS-PER-WORD))))))
171 171
172(defsubst wisent-noninteractive () 172(defsubst wisent-noninteractive ()
173 "Return non-nil if running without interactive terminal." 173 "Return non-nil if running without interactive terminal."