iPXE
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
b
d
i
p
s
t
u
v
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
libgcc
__divmoddi4.c
Go to the documentation of this file.
1
#include "
libgcc.h
"
2
3
__libgcc
int64_t
__divmoddi4
(
int64_t
num
,
int64_t
den,
int64_t
*rem_p)
4
{
5
int
minus = 0;
6
int64_t
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 =
__udivmoddi4
(
num
, den, (
uint64_t
*)rem_p);
18
if
( minus ) {
19
v = -v;
20
if
( rem_p )
21
*rem_p = -(*rem_p);
22
}
23
24
return
v;
25
}
uint64_t
unsigned long long uint64_t
Definition:
stdint.h:13
num
uint32_t num
Definition:
multiboot.h:12
int64_t
signed long long int64_t
Definition:
stdint.h:18
__divmoddi4
__libgcc int64_t __divmoddi4(int64_t num, int64_t den, int64_t *rem_p)
Definition:
__divmoddi4.c:3
__udivmoddi4
__libgcc uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p)
Definition:
__udivmoddi4.c:3
__libgcc
#define __libgcc
Declare a function with libgcc implicit linkage.
Definition:
compiler.h:37
libgcc.h
Generated by
1.8.15