mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00
23 lines
445 B
C++
23 lines
445 B
C++
![]() |
//
|
||
|
// imaxabs.cpp
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//
|
||
|
// Defines imaxabs(), which computes the absolute value of an intmax_t.
|
||
|
//
|
||
|
#include <inttypes.h>
|
||
|
|
||
|
|
||
|
|
||
|
extern "C" intmax_t __cdecl imaxabs(intmax_t const number)
|
||
|
{
|
||
|
return number < 0 ? -number : number;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
* Copyright (c) 1992-2010 by P.J. Plauger. ALL RIGHTS RESERVED.
|
||
|
* Consult your license regarding permissions and restrictions.
|
||
|
V5.30:0009 */
|