BITWISE LOGICAL FUNCTIONS
THE BITWISE AND OF A LIST OF INTEGERS
(logand [<expr>...])
With no arguments returns identity -1
- <expr> the integers
- returns the result of the and operation
THE BITWISE INCLUSIVE OR OF A LIST OF INTEGERS
(logior [<expr>...])
With no arguments returns identity 0
- <expr> the integers
- returns the result of the inclusive or operation
THE BITWISE EXCLUSIVE OR OF A LIST OF INTEGERS
(logxor [<expr>...])
With no arguments returns identity 0
- <expr> the integers
- returns the result of the exclusive or operation
THE BITWISE NOT OF A INTEGER
(lognot <expr>)
- <expr> the integer
- returns the bitwise inversion of integer
TEST BITWISE AND OF TWO INTEGERS
(logtest <expr1> <expr2>)
Defined in common.lsp
- <expr1> the first integer
- <expr2> the second integer
- returns T if the result of the and operation is non-zero, else NIL
ARITHMETIC SHIFT
(ash <expr1> <expr2>)
Part of math extension
- <expr1> integer to shift
- <expr2> number of bit positions to shift (positive is to left)
- returns shifted integer
XLISP-PLUS - Version 2.1g - Tom Almy
tom.almy@tek.com - 18 JUL 94
Generated with WebMaker