CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

qsqrt.h File Reference

Fast computation of sqrt(x) and 1/sqrt(x). More...

#include <math.h>

Go to the source code of this file.

Functions

float qsqrt (float x)
 This routine computes sqrt(x) very quickly on Intel and PowerPC platforms.

float qisqrt (float x)
 This routine is basically equivalent to qsqrt() except that it returns 1/sqrt(x) rather than the proper square root.


Detailed Description

Fast computation of sqrt(x) and 1/sqrt(x).

Define CS_NO_QSQRT if you experience mysterious problems with CS which you think are related to this version of sqrt not behaving properly. If you find something like that I'd like to be notified of this so we can make sure this really is the problem.

Definition in file qsqrt.h.


Generated for Crystal Space by doxygen 1.2.18