Carbon


HiWord

Header: ToolUtils.h Carbon status: Supported

Obtains the high-order word of a long word.

SInt16 HiWord (
    SInt32 x
);
Parameter descriptions
x

The long word whose high word is to be returned.

function result

The high-order word of the long word specified by the x parameter.

DISCUSSION

One use of this function is to obtain the integral part of a fixed-point number.

To copy a range of bytes from one memory location to another, you should ordinarily use the Memory Manager function, BlockMove.


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