mirror of
https://github.com/python/cpython.git
synced 2025-12-08 18:32:16 +00:00
Put the defines in the logical section and fix indentation.
This commit is contained in:
parent
f367962d86
commit
742d8716ff
1 changed files with 8 additions and 8 deletions
|
|
@ -31,12 +31,6 @@
|
|||
#include "structmember.h"
|
||||
#include "stringlib/eq.h"
|
||||
|
||||
/* This must be >= 1 */
|
||||
#define PERTURB_SHIFT 5
|
||||
|
||||
/* This should be >= PySet_MINSIZE - 1 */
|
||||
#define LINEAR_PROBES 9
|
||||
|
||||
/* Object used as dummy key to fill deleted entries */
|
||||
static PyObject _dummy_struct;
|
||||
|
||||
|
|
@ -49,6 +43,12 @@ PyObject *_PySet_Dummy = dummy;
|
|||
/* ======================================================================== */
|
||||
/* ======= Begin logic for probing the hash table ========================= */
|
||||
|
||||
/* This should be >= PySet_MINSIZE - 1 */
|
||||
#define LINEAR_PROBES 9
|
||||
|
||||
/* This must be >= 1 */
|
||||
#define PERTURB_SHIFT 5
|
||||
|
||||
static setentry *
|
||||
set_lookkey(PySetObject *so, PyObject *key, Py_hash_t hash)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue