ReactOS 0.4.16-dev-959-g2ec3a19
ldiv.cpp
Go to the documentation of this file.
1//
2// ldiv.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Defines ldiv(), which performs a signed divide and returns the quotient and
7// remainder. No validation of the arguments is done.
8//
9#include <stdlib.h>
10
11
12#if defined(_MSC_VER) && (_MSC_VER >= 1922)
13#pragma function(ldiv)
14#endif
15extern "C" ldiv_t __cdecl ldiv(long const numerator, long const denominator)
16{
18
19 result.quot = numerator / denominator;
20 result.rem = numerator % denominator;
21
22 return result;
23}
#define __cdecl
Definition: accygwin.h:79
GLuint64EXT * result
Definition: glext.h:11304
ldiv_t __cdecl ldiv(long const numerator, long const denominator)
Definition: ldiv.cpp:15
Definition: stdlib.h:43