summaryrefslogtreecommitdiffstats
path: root/device/alignment_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* device: fix alignment on 32-bit machines and test for itJason A. Donenfeld2021-02-091-2/+1
| | | | | | | | | The test previously checked the offset within a substruct, not the offset within the allocated struct, so this adds the two together. It then fixes an alignment crash on 32-bit machines. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: use a waiting sync.Pool instead of a channelJason A. Donenfeld2021-02-021-1/+0
| | | | | | Channels are FIFO which means we have guaranteed cache misses. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* device: use int64 instead of atomic.Value for time stampJason A. Donenfeld2021-01-291-0/+67
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>