ReactOS
0.4.16-dev-252-g9ccafe8
Functions
div.c File Reference
#include <precomp.h>
Include dependency graph for div.c:
Go to the source code of this file.
Functions
div_t
CDECL
div
(
int
num
,
int
denom)
Function Documentation
◆
div()
div_t
CDECL
div
(
int
num
,
int
denom
)
Definition at line
13
of file
div.c
.
14
{
15
div_t
r
;
16
17
if
(
num
> 0 && denom < 0) {
18
num
= -
num
;
19
denom = -denom;
20
}
21
r
.quot =
num
/ denom;
22
r
.rem =
num
% denom;
23
if
(num < 0 && denom > 0)
24
{
25
if
(
r
.rem > 0)
26
{
27
r
.quot++;
28
r
.rem -= denom;
29
}
30
}
31
return
r
;
32
}
r
GLdouble GLdouble GLdouble r
Definition:
gl.h:2055
num
GLuint GLuint num
Definition:
glext.h:9618
_div_t
Definition:
stdlib.h:38
sdk
lib
crt
math
div.c
Generated on Sun Nov 10 2024 06:22:44 for ReactOS by
1.9.6