TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DetourNode.cpp File Reference
#include "DetourNode.h"
#include "DetourAlloc.h"
#include "DetourAssert.h"
#include "DetourCommon.h"
#include <string.h>
+ Include dependency graph for DetourNode.cpp:

Functions

unsigned int dtHashRef (dtPolyRef a)
 

Function Documentation

unsigned int dtHashRef ( dtPolyRef  a)
inline
26 {
27  // Edited by TC
28  a = (~a) + (a << 18);
29  a = a ^ (a >> 31);
30  a = a * 21;
31  a = a ^ (a >> 11);
32  a = a + (a << 6);
33  a = a ^ (a >> 22);
34  return (unsigned int)a;
35 }

+ Here is the caller graph for this function: