A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/CLHS/Body/f_ldb_te.htm below:

CLHS: Function LDB-TEST

CLHS: Function LDB-TEST Function LDB-TEST

Syntax:

ldb-test bytespec integer => generalized-boolean

Arguments and Values:

bytespec---a byte specifier.

integer---an integer.

generalized-boolean---a generalized boolean.

Description:

Returns true if any of the bits of the byte in integer specified by bytespec is non-zero; otherwise returns false.

Examples:

 (ldb-test (byte 4 1) 16) =>  true
 (ldb-test (byte 3 1) 16) =>  false
 (ldb-test (byte 3 2) 16) =>  true

Side Effects: None.

Affected By: None.

Exceptional Situations: None.

See Also:

byte, ldb, zerop

Notes:

 (ldb-test bytespec n) == 
 (not (zerop (ldb bytespec n))) == 
 (logtest (ldb bytespec -1) n)

Copyright 1996-2005, LispWorks Ltd. All rights reserved.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4