repo.or.cz
/
linux-2.6
/
lfs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PARISC] import necessary bits of libgcc.a
[linux-2.6/lfs.git]
/
arch
/
parisc
/
lib
/
libgcc
/
__divsi3.c
blob
730fb530680d1d8f120921d42572cd6d734c6b8a
1
#include
"libgcc.h"
2
3
s32
__divsi3
(
s32 num
,
s32 den
)
4
{
5
int
minus
=
0
;
6
s32 v
;
7
8
if
(
num
<
0
) {
9
num
= -
num
;
10
minus
=
1
;
11
}
12
if
(
den
<
0
) {
13
den
= -
den
;
14
minus
^=
1
;
15
}
16
17
v
=
__udivmodsi4
(
num
,
den
,
NULL
);
18
if
(
minus
)
19
v
= -
v
;
20
21
return
v
;
22
}
23
EXPORT_SYMBOL
(
__divsi3
);