Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_samsung_exynos9820
/
8588a2b732928b343233af9b1855705b8286bed4
/
.
/
arch
/
parisc
/
lib
/
libgcc
/
__divsi3.c
blob: 730fb530680d1d8f120921d42572cd6d734c6b8a [
file
] [
log
] [
blame
]
#include
"libgcc.h"
s32 __divsi3
(
s32 num
,
s32 den
)
{
int
minus
=
0
;
s32 v
;
if
(
num
<
0
)
{
num
=
-
num
;
minus
=
1
;
}
if
(
den
<
0
)
{
den
=
-
den
;
minus
^=
1
;
}
v
=
__udivmodsi4
(
num
,
den
,
NULL
);
if
(
minus
)
v
=
-
v
;
return
v
;
}
EXPORT_SYMBOL
(
__divsi3
);