repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update copyright notices with scripts/update-copyrights.
[glibc.git]
/
sysdeps
/
sparc
/
sparc32
/
sparcv9
/
urem.S
blob
cab16c919377054a12584261836accd1ef325888
1
/*
2
* Sparc v9 has divide.
3
* As divx takes 68 cycles and udiv only 37,
4
* we use udiv eventhough it is deprecated.
5
*/
6
7
#include <sysdep.h>
8
9
.text
10
.align 32
11
ENTRY(.urem)
12
13
wr %g0, 0, %y
14
udiv %o0, %o1, %o2
15
umul %o2, %o1, %o2
16
retl
17
sub %o0, %o2, %o0
18
19
END(.urem)