mirror of
https://github.com/golang/go
synced 2024-11-19 12:34:47 -07:00
runtime: simplify amd64 memmove of 3/4 bytes
Change-Id: I132d3627ae301b68bf87eacb5bf41fd1ba2dcd91 Reviewed-on: https://go-review.googlesource.com/94025 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8e0b814a3a
commit
910d232a28
@ -48,7 +48,8 @@ tail:
|
||||
CMPQ BX, $2
|
||||
JBE move_1or2
|
||||
CMPQ BX, $4
|
||||
JBE move_3or4
|
||||
JB move_3
|
||||
JBE move_4
|
||||
CMPQ BX, $8
|
||||
JB move_5through7
|
||||
JE move_8
|
||||
@ -145,9 +146,7 @@ move_1or2:
|
||||
RET
|
||||
move_0:
|
||||
RET
|
||||
move_3or4:
|
||||
CMPQ BX, $4
|
||||
JB move_3
|
||||
move_4:
|
||||
MOVL (SI), AX
|
||||
MOVL AX, (DI)
|
||||
RET
|
||||
|
Loading…
Reference in New Issue
Block a user