June 1995
Intermediate to advanced
438 pages
10h 53m
English
Turkowski Ken, Apple Computer, Inc. Cupertino, California. E-mail address: turk@apple.com
Many graphics algorithms rely upon fixed-point arithmetic and its inherent speed advantage over floating point. Often, a fixed-point algorithm requires the evaluation of a square root. This gem describes an algorithm that computes the square root directly in its fixed-point representation, saving the expense of (re)converting and evaluating in floating point. A related gem (Musial 1991) computes an approximate integer square root through the use of integer divisions, but the following algorithm uses more elementary operations.
The algorithm is based upon a fixed-point format having two integer ...
Read now
Unlock full access