summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/sparcv8/urem.S
blob: 0e96246f5410913b98b99bb4f84e05f1587db91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Sparc v8 has divide.
 */

ENTRY(.urem)

	wr	%g0, 0, %y
	nop
	nop
	nop
	udiv	%o0, %o1, %o2
	umul	%o2, %o1, %o2
	retl
	 sub	%o0, %o2, %o0

END(.urem)