Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 6479cf530c |
1 changed files with 7 additions and 7 deletions
14
mandel.s
14
mandel.s
|
|
@ -461,7 +461,7 @@ input_max:
|
||||||
sub 4, dest, arg1, arg2
|
sub 4, dest, arg1, arg2
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
; 3 + 5 * bytes cycles
|
; 3 + 5 * (bytes - 1) cycles
|
||||||
.macro shl bytes, arg
|
.macro shl bytes, arg
|
||||||
asl arg ; 3 cyc
|
asl arg ; 3 cyc
|
||||||
.repeat bytes-1, i
|
.repeat bytes-1, i
|
||||||
|
|
@ -469,17 +469,17 @@ input_max:
|
||||||
.endrepeat
|
.endrepeat
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
; 13 cycles
|
; 8 cycles
|
||||||
.macro shl16 arg
|
.macro shl16 arg
|
||||||
shl 2, arg
|
shl 2, arg
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
; 18 cycles
|
; 13 cycles
|
||||||
.macro shl24 arg
|
.macro shl24 arg
|
||||||
shl 3, arg
|
shl 3, arg
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
; 23 cycles
|
; 18 cycles
|
||||||
.macro shl32 arg
|
.macro shl32 arg
|
||||||
shl 4, arg
|
shl 4, arg
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
@ -529,11 +529,11 @@ input_max:
|
||||||
neg 4, arg
|
neg 4, arg
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
; 11-27 + 23 * shift cycles
|
; 11-27 + 18 * shift cycles
|
||||||
; 103-119 cycles for shift=4
|
; 65-81 cycles for shift=3
|
||||||
.macro shift_round_16 arg, shift
|
.macro shift_round_16 arg, shift
|
||||||
.repeat shift
|
.repeat shift
|
||||||
shl32 arg ; 23 cycles
|
shl32 arg ; 18 cycles
|
||||||
.endrepeat
|
.endrepeat
|
||||||
round16 arg ; 11-27 cycles
|
round16 arg ; 11-27 cycles
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue