Rick V
2fe4c15792
why jeff why
2020-06-12 18:00:39 -05:00
Jeff Becker
403bc74493
unbreak unit tests
2020-05-24 07:06:27 -04:00
Jeff Becker
f0eca908a4
use static_assert instead
2020-05-23 17:18:00 -04:00
Jeff Becker
4ad8ae253d
align to either 64bit or max_align_t which ever is smaller, for 32 bit.
2020-05-23 17:06:04 -04:00
Jeff Becker
eb0abbf1ff
add eraseif to decaying hashset
2020-05-23 16:07:21 -04:00
Jeff Becker
6af498092b
exit traffic via loki addresses
2020-05-23 16:07:19 -04:00
Jason Rhinelander
dccc663f31
Miss Match demands her name be removed from the code
...
(i.e. fix speeling mistack: missmatch -> mismatch)
2020-05-13 22:35:15 -03:00
Stephen Shelton
273270916e
The Great Wall of Blame
...
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.
Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
2020-04-07 12:38:56 -06:00
Thomas Winget
68c1ae52b3
add ShortHex function to AlignedBuffer
2020-03-03 19:57:09 -05:00
Jeff Becker
8b8d636ded
make format
2019-12-22 09:16:28 -05:00
Jason Rhinelander
1b710455a7
Disallow AlignedBuffer < 8 bytes; add oddball buffer sizes
2019-12-19 16:17:02 -04:00
Jason Rhinelander
d57d6bfc6d
Use memcpy to extract hash value
...
Using the straight reinterpret_cast runs into type aliasing issues,
which manifest on armhf. C++20 adds `std::bit_cast` to deal with
exactly this, but memcpy is the pre-C++20 way to do it properly.
2019-12-19 15:55:02 -04:00
Rick V
a08d2ff64e
microsoft libc a shit
2019-12-16 11:32:50 -06:00
Rick V
caa6549cbb
clang-format everything
2019-12-16 11:32:49 -06:00
Rick V
64710ca4d4
Explicitly align to 16 bytes on Win32 targets
2019-12-16 11:28:48 -06:00
Stephen Shelton
a4aef312ae
make format (or format-verify, at least)
2019-12-12 10:09:57 -07:00
Jason Rhinelander
d4a5dc66ac
Change alignment to std::max_align_t
...
This will typically be stricter alignment (16 byte on amd64) which seems
useful for the intended use case here.
2019-12-12 12:15:13 -04:00
Jason Rhinelander
460d64fc0f
Simplify AlignedBuffer alignment implementation
...
This simplifies the use of std::aligned_storage with just using an
`alignas` on AlignedBuffer itself so that the (only) data member gets
the proper alignment and saves a bunch of reinterpret_casts in favour of
just having the std::array as an ordinary member.
2019-12-12 12:12:45 -04:00
Stephen Shelton
e2e9e63467
Optimize AlignedBuffer:::IsZero()
2019-12-10 11:50:52 -07:00
Jeff Becker
a7884a82e2
use faster hashing
2019-12-09 17:35:05 -05:00
Michael
4d8fe2a8a8
Move meta programming to subdirectory
2019-09-03 20:52:28 +01:00
Michael
1aec0dfa2b
Move logging to subdirectory
2019-09-03 20:52:27 +01:00
Michael
f9e9227e19
Fix gcc trunk warnings
2019-08-02 10:29:08 +01:00
Michael
e4cf1f245c
Convert most of llarp to use Printer
2019-02-24 23:46:44 +00:00
Michael
47380ba64b
Simplify some code
2019-02-03 00:31:10 +00:00
Michael
f3b0af9d2f
Create CopyableBuffer type
2019-02-02 23:21:35 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library
2019-01-10 20:07:24 +00:00