ReactOS 0.4.16-dev-732-g2d1144a
abs.cpp
Go to the documentation of this file.
1//
2// abs.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Defines abs() and _abs64(), which compute the absolute value of a number.
7//
8#include <stdlib.h>
9
10
11
12#pragma function(abs, _abs64)
13
14
15
16extern "C" int __cdecl abs(int const number)
17{
18 return number >= 0 ? number : -number;
19}
20
22{
23 return number >= 0 ? number : -number;
24}
__int64 __cdecl _abs64(__int64 const number)
Definition: abs.cpp:21
#define __cdecl
Definition: accygwin.h:79
#define __int64
Definition: basetyps.h:16
#define abs(i)
Definition: fconv.c:206
static unsigned int number
Definition: dsound.c:1479