Carbon


HiWord

Header: ToolUtils.h Carbon status: Supported

Obtains the high-order word of a long word.

SInt16 HiWord (
    SInt32 x
);
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.0

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.

AVAILABILITY

Supported in Carbon.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)