Implemented division
This commit is contained in:
parent
432397043d
commit
3aedcef9eb
7 changed files with 89 additions and 3 deletions
7
src/build/arch/x64/ExtendRAXToRDX.go
Normal file
7
src/build/arch/x64/ExtendRAXToRDX.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package x64
|
||||
|
||||
// ExtendRAXToRDX doubles the size of RAX by sign-extending it to RDX.
|
||||
// This is also known as CQO.
|
||||
func ExtendRAXToRDX(code []byte) []byte {
|
||||
return append(code, 0x48, 0x99)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue