Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 8 - QuickDraw GX Mathematics / QuickDraw GX Mathematics Reference
Mathematical Functions / Operations on wide Numbers


WideShift

You can use the WideShift function to shift bits in a wide number.

wide *WideShift(wide *target, long shift);
target
A pointer to the number for which the bits are to be shifted. On return, contains the shifted number.
shift
The number of bits by which the target is to be shifted to the right.
function result
A pointer to the target number.
DESCRIPTION
The shift direction is to the right (a decrease in magnitude) if the shift parameter is greater than 0, and to the left if the shift parameter is less than 0. The result of a right shift is rounded.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996