- 16 Oct, 2020 1 commit
-
-
Christoph Groth authored
The test assumed incorrectly that Python’s sys.maxsize is the size of the C long type. In particular, this is not true on 64 bit Windows.
-
- 18 Sep, 2020 1 commit
-
-
Christoph Groth authored
-
- 17 Sep, 2020 1 commit
-
-
Christoph Groth authored
-
- 16 Sep, 2020 7 commits
-
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
- 24 Dec, 2019 2 commits
-
-
Anton Akhmerov authored
-
Anton Akhmerov authored
-
- 25 Sep, 2018 1 commit
-
-
Christoph Groth authored
Notably, this fixes the hash equality between tinyarrays and tuples on 64 bit Windows where long is only 32 bit. The changes shouldn't have any observable effect (other than a minor speedup) on Unix.
-
- 22 Aug, 2018 6 commits
-
-
Joseph Weston authored
this fixes object size calculation. The previous implementation did not work in cases where the datatype stored in the tinyarray is narrower than a machine word, and the compiler padded 'Array_base' to be word-aligned.
-
Joseph Weston authored
The more complicated implementation that we had previously, (which was copied not-quite-verbatim from https://github.com/python/cpython/blob/master/Objects/longobject.c#L3031) is not necessary because hashing for integers is just the integer itself modulo _PyHASH_MODULUS (being careful with the sign).
-
Joseph Weston authored
This bug only seems to materialize on Windows, but now the types match https://github.com/python/cpython/blob/master/Objects/longobject.c#L3031 Also inline 'old_hash', now that it is used in a single place only.
-
Joseph Weston authored
'sys.maxsize' refers to the size of a 'Py_size_t', whereas ndarray_int's internally store a 'long'. We now correctly test for hash equality within the relevant integer limits.
-
Joseph Weston authored
This is useful for testing
-
Joseph Weston authored
Also define 'Py_uhash_t'. This increases parity between the tinyarray hashing code and CPython's. Note that in Python2 hashes were long integers, whereas in Python 3 they are size_t.
-
- 11 May, 2017 2 commits
-
-
Christoph Groth authored
-
Christoph Groth authored
-
- 13 Feb, 2017 3 commits
-
-
Jörg Behrmann authored
Numpy 1.12.0 updated iscomplexobj which always shows False for tinyarrays, which makes assert_almost_equal fail for complex array-valued arguments, as they will not be split up into real and imaginary part. We circumvent this bug by testing every entry separately in this case. This bug will be fixed for Numpy 1.12.1. Fixes #11
-
Jörg Behrmann authored
This silences the warning about "invalid suffix on literal".
-
Joseph Weston authored
-
- 28 Jan, 2017 1 commit
-
-
Bas Nijholt authored
-
- 21 Dec, 2016 6 commits
-
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
These two options are pure setuptools functionality and problematic: https://pip.pypa.io/en/stable/user_guide/?highlight=setup_requires#installation-bundles
-
Christoph Groth authored
-
- 20 Dec, 2016 1 commit
-
-
Joseph Weston authored
Also fixes other memory leads. Previously, load_index_seq_as_long did not correctly DECREF the new reference created by PySequence_Fast. fixes #10
-
- 19 Dec, 2016 8 commits
-
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-
Christoph Groth authored
-