Carbon


BitXor

Header: ToolUtils.h Carbon status: Supported

Performs the XOR logical operation on two long words.

SInt32 BitXor (
    SInt32 value1, 
    SInt32 value2
);
Parameter descriptions
value1

A long word.

value2

A long word.

function result

A long word that is the result of the XOR operation on the long words passed in as arguments. Each bit in the returned value is set if and only if the corresponding bit is set in either value1 or value2, but not in both value1 and value2.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)