[Go] Unroll WriteUint64 and WriteInt64.
authorBrian Atkinson <brian@atkinson.mn>
Sun, 15 Jul 2018 23:38:55 +0000 (16:38 -0700)
committerBrian Atkinson <brian@atkinson.mn>
Sun, 15 Jul 2018 23:47:17 +0000 (16:47 -0700)
commite2eb6af3e3ebecff8647c01f81eac92bf864fc31
treeb0132dae8c90091b9557cb9461a997e6a6610a6e
parentb188fde27eeb2093ce8c5198de3eb46ee1eedabb
[Go] Unroll WriteUint64 and WriteInt64.

This enables both WriteUint64 and WriteInt64 to both be inlined as
well as implemented with a single assembly instruction. The current Go
compiler refuses to inline functions with for loops. The compiler is
also not smart enough to produce a single assembly instruction for the
for-loop.
go/encode.go