]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify readUnaligned
authorIlya Tocar <ilya.tocar@intel.com>
Wed, 13 Jun 2018 19:20:19 +0000 (14:20 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Wed, 13 Mar 2019 17:50:18 +0000 (17:50 +0000)
commit3aa7bbdbcb432f78462fa816ba7c63cb7f3991fe
treeb3cfdf77c28e30f78c5bc977224a72e67fde2854
parent82bd93991a84042f4d960f0338cbff4792867857
runtime: simplify readUnaligned

We already have a pure go code sequence that is compiled into single load.
Just use it everywhere, instead of pointer hackery.
Passes toolstash-check.

Change-Id: I0c42b5532fa9a5665da3385913609c6d42aaff27
Reviewed-on: https://go-review.googlesource.com/c/go/+/118568
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/alg.go
src/runtime/unaligned1.go [deleted file]
src/runtime/unaligned2.go [deleted file]