17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

307 lognot<br />

I<br />

lognot integer Function<br />

Returns the logical complement of integer. This is the same as<br />

<strong>zl</strong>:logxoring integer with -1.<br />

Example:<br />

(lognot 3456) => -3457<br />

(lognot 8) => -1<br />

(lognot 1) => -2<br />

For a table of related items: See the section "Functions Returning Result<br />

of Bit-wise Logical Operations" in Symbolics Common Lisp: Language Concepts.<br />

logorcl integer 1 integer2 Function<br />

logorcl is a non-associative bit-wise logical operation and takes exactly two<br />

arguments. It returns the logical or of the complement of integerl with<br />

integer2.<br />

Examples:<br />

(logorc1 -1 11) => 11<br />

(logorc1 11 -1) => -1<br />

See the function hoole, page 54.<br />

For a table of related items: See the section "Functions Returning Result<br />

of Bit-wise Logical Operations" in Symbolics Common Lisp: Language Concepts.<br />

logorc2 integerl integer2 Function<br />

logorc2 is a non-associative bit-wise logical operation and takes exactly two<br />

arguments. It returns the logical or of integerl with the complement of<br />

integer2.<br />

Examples:<br />

(logorc2 -1 11) => -1<br />

(logorc2 11 -1) => 11<br />

See the function hoole, page 54.<br />

For a table of related items: See the section "Functions Returning Result<br />

of Bit-wise Logical Operations" in Symbolics Common Lisp: Language Concepts.<br />

logtest integer 1 integer2 Function<br />

The predicate logtest is true if any of the bits designated by the l's in<br />

integerl are l's in integer2 (that is, if there exists at least one non-negative<br />

integer j, such that bit j in integerl and bit j in integer2 are both 1's).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!