~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Include/pyport.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
#endif
132
132
#endif
133
133
 
 
134
/* Prime multiplier used in string and various other hashes. */
 
135
#define _PyHASH_MULTIPLIER 1000003  /* 0xf4243 */
 
136
 
134
137
/* Parameters used for the numeric hash implementation.  See notes for
135
138
   _PyHash_Double in Objects/object.c.  Numeric hashes are based on
136
139
   reduction modulo the prime 2**_PyHASH_BITS - 1. */
143
146
#define _PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1)
144
147
#define _PyHASH_INF 314159
145
148
#define _PyHASH_NAN 0
146
 
#define _PyHASH_IMAG 1000003UL
 
149
#define _PyHASH_IMAG _PyHASH_MULTIPLIER
147
150
 
148
151
/* uintptr_t is the C9X name for an unsigned integral type such that a
149
152
 * legitimate void* can be cast to uintptr_t and then back to void* again