ReactOS 0.4.16-dev-959-g2ec3a19
imaxabs.cpp
Go to the documentation of this file.
1//
2// imaxabs.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Defines imaxabs(), which computes the absolute value of an intmax_t.
7//
8#include <inttypes.h>
9
10
11
13{
14 return number < 0 ? -number : number;
15}
16
17
18
19/*
20 * Copyright (c) 1992-2010 by P.J. Plauger. ALL RIGHTS RESERVED.
21 * Consult your license regarding permissions and restrictions.
22V5.30:0009 */
#define __cdecl
Definition: accygwin.h:79
intmax_t __cdecl imaxabs(intmax_t const number)
Definition: imaxabs.cpp:12
__MINGW_EXTENSION typedef long long intmax_t
Definition: stdint.h:68
static unsigned int number
Definition: dsound.c:1479