Bxor()

From TinyMUX
Revision as of 05:01, 17 January 2006 by Ian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

FUNCTION: bxor(number[, number [, ...]])

Arguments must be integers and they are treated as a bitfield. It performs a bitwise logical eXclusive-OR which has the effect of toggling certain bits on in the result.

Related Topics: shl(), shr(), band(), bnand(), bor().

Examples

> think bxor(922,785)
139


(--Soylent 00:53, 3 December 2005 (EST))