aboutsummaryrefslogtreecommitdiff
blob: cc2689d514a2c0be33cf8cca0c08d277853a3a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Sparc v8 has divide.
 */

#include <sysdep.h>

ENTRY(.urem)

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

END(.urem)