forked from TCShenanigans/symphony_stdlib
remove non standard instructions do testing outside of repo
This commit is contained in:
@@ -1,13 +1,3 @@
|
|||||||
mov r1, 0
|
|
||||||
qcall clz
|
|
||||||
add zr, zr, zr
|
|
||||||
mov r1, 0x1
|
|
||||||
qcall clz
|
|
||||||
add zr, zr, zr
|
|
||||||
add r1, zr, 0xAAAA
|
|
||||||
lsl r1, r1, 6
|
|
||||||
qcall popc
|
|
||||||
|
|
||||||
pub rotate_left:
|
pub rotate_left:
|
||||||
; (r1 >> r2) | (r1 << (32 - r2))
|
; (r1 >> r2) | (r1 << (32 - r2))
|
||||||
sub r3, zr, r2
|
sub r3, zr, r2
|
||||||
@@ -79,4 +69,4 @@ pub popc:
|
|||||||
lsr r2, r4, 16
|
lsr r2, r4, 16
|
||||||
add r4, r4, r2
|
add r4, r4, r2
|
||||||
and r1, r4, 0xFF ; mask out end result in lowest byte
|
and r1, r4, 0xFF ; mask out end result in lowest byte
|
||||||
jmp r13
|
jmp r13
|
||||||
|
|||||||
Reference in New Issue
Block a user