FixedVector.cpp File Reference

#include <common/FixedVector.h>

Go to the source code of this file.

Defines

#define sqrt_step(shift)

Functions

static long long iSqrtLL (long long value)
static long iSqrtL (long value)

Variables

static FixedVector nullVector


Define Documentation

#define sqrt_step ( shift   ) 

Value:

if((0x40000000l >> shift) + root <= value)          \
    {                                                   \
        value -= (0x40000000l >> shift) + root;         \
        root = (root >> 1) | (0x40000000l >> shift);    \
    }                                                   \
    else                                                \
    {                                                   \
        root = root >> 1;                               \
    }

Definition at line 31 of file FixedVector.cpp.


Function Documentation

static long iSqrtL ( long  value  )  [static]

Definition at line 73 of file FixedVector.cpp.

References sqrt_step.

Referenced by FixedVector::Magnitude().

static long long iSqrtLL ( long long  value  )  [static]

Definition at line 42 of file FixedVector.cpp.

References sqrt_step.

Referenced by FixedVector::Magnitude().


Variable Documentation

FixedVector nullVector [static]

Definition at line 23 of file FixedVector.cpp.


Generated on Mon Feb 16 15:14:57 2009 for Scorched3D by  doxygen 1.5.3