Maxime Coste
e4a23a64fa
Support opening files bigger than 2 GiB
...
The real technical limit is with lines bigger than 2 GiB and buffers
with more than 2 Gi lines, refactor buffer loading to make it possible
to load those files.
Fix an overflow with the hash_data function at the same time
2021-05-28 17:03:41 +10:00
Ben Judd
56875088d4
comments
2021-04-18 16:06:05 -07:00
Ben Judd
161ca6d4d1
hash unit tests.
2021-04-17 13:19:35 -07:00
Maxime Coste
4e7a357a47
Fix various undefined behaviours detected by UBSan
2017-06-26 11:27:18 +01:00
Maxime Coste
ea105b9942
Add fallthrough comment to silence gcc-7 warning
...
Until we switch to C++17 and can use the proper attributes there.
Fixes #1437
2017-06-16 10:28:40 +01:00
Maxime Coste
ebecd60eb8
Rework hashing, use a more extensible framework similar to n3876 proposal
...
std::hash specialization is a pain to work with, stop using that, and
just specialize a 'size_t hash_value(const T&)' free function.
2014-12-16 18:57:19 +00:00