mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
22 lines
445 B
C++
22 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 */
|