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
16
extern
"C"
int
__cdecl
abs
(
int
const
number
)
17
{
18
return
number
>= 0 ?
number
: -
number
;
19
}
20
21
extern
"C"
__int64
__cdecl
_abs64
(
__int64
const
number
)
22
{
23
return
number
>= 0 ?
number
: -
number
;
24
}
_abs64
__int64 __cdecl _abs64(__int64 const number)
Definition:
abs.cpp:21
__cdecl
#define __cdecl
Definition:
accygwin.h:79
__int64
#define __int64
Definition:
basetyps.h:16
abs
#define abs(i)
Definition:
fconv.c:206
number
static unsigned int number
Definition:
dsound.c:1479
sdk
lib
ucrt
stdlib
abs.cpp
Generated on Sat Feb 8 2025 06:14:41 for ReactOS by
1.9.6