ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.93 by root, Sat Nov 7 18:30:05 2009 UTC vs.
Revision 1.94 by root, Sun Nov 8 16:13:45 2009 UTC

186 int32_t d = b - a; 186 int32_t d = b - a;
187 d &= d >> 31; 187 d &= d >> 31;
188 return b - d; 188 return b - d;
189} 189}
190 190
191// this is much faster than crossfires original algorithm 191// this is much faster than crossfire's original algorithm
192// on modern cpus 192// on modern cpus
193inline int 193inline int
194isqrt (int n) 194isqrt (int n)
195{ 195{
196 return (int)sqrtf ((float)n); 196 return (int)sqrtf ((float)n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines