diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-04-06 17:27:33 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-04-12 13:38:17 +1000 |
| commit | a73501b1d63e5240cbced95b884383b79f5d6efd (patch) | |
| tree | d8ce111a693639cb608a3e965fb4ee376421b32d /py/mpconfig.h | |
| parent | 816413e4b20ccd463321558458bb63c310712bca (diff) | |
py/objfloat: Add implementation of high-quality float hashing.
Disabled by default.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 06c19f72b..05cb5daaf 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -548,6 +548,12 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_COMPLEX (MICROPY_PY_BUILTINS_FLOAT) #endif +// Whether to provide a high-quality hash for float and complex numbers. +// Otherwise the default is a very simple but correct hashing function. +#ifndef MICROPY_FLOAT_HIGH_QUALITY_HASH +#define MICROPY_FLOAT_HIGH_QUALITY_HASH (0) +#endif + // Enable features which improve CPython compatibility // but may lead to more code size/memory usage. // TODO: Originally intended as generic category to not |
