shifttest.S

sima/lhash/shifttest.S · 1.0 KB

From the archive 970706-sima.tgz

Download the archive   « Back to the archive contents

.text
	.align 4
.globl _shift1
_shift1:
	movl $1000000,%eax
L1:
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	rorl $8,%ecx
	decl %eax
	jne L1
	ret
	.align 4
.globl _shift2
_shift2:
	movl $1000000,%eax
L2:
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	leal 0(,%ecx,8),%ecx
	decl %eax
	jne L2
	ret
	.align 4
.globl _shift3
_shift3:
	movl $1000000,%eax
L3:
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	xchgb %al,%ah
	decl %eax
	jne L3
	ret

Site Stats

Snippets: 1791
Codebases: 571