~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Expressions/KX_HashedPtr.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: KX_HashedPtr.cpp 28254 2010-04-18 10:28:37Z campbellbarton $
 
1
/*
3
2
 * ***** BEGIN GPL LICENSE BLOCK *****
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or
26
25
 * ***** END GPL LICENSE BLOCK *****
27
26
 */
28
27
 
 
28
/** \file gameengine/Expressions/KX_HashedPtr.cpp
 
29
 *  \ingroup expressions
 
30
 */
 
31
 
 
32
 
29
33
#include "KX_HashedPtr.h"
30
34
 
31
35
unsigned int KX_Hash(void * inDWord)
32
36
{
33
 
#if defined(_WIN64)
 
37
#if defined(_WIN64) && !defined(FREE_WINDOWS64)
34
38
        unsigned __int64 key = (unsigned __int64)inDWord;
35
39
#else
36
40
        unsigned long key = (unsigned long)inDWord;
43
47
        key += ~(key <<  9);
44
48
        key ^=  (key >> 17);
45
49
 
46
 
        return (unsigned int)(key & 0xffffffff);
 
50
        return (unsigned int)(key & 0xffffffff);
47
51
}
48
52
 
49
53