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
19 lines
311 B
C++
19 lines
311 B
C++
//
|
|
// llabs.cpp
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines llabs(), which computes the absolute value of a number.
|
|
//
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#pragma function(llabs)
|
|
|
|
|
|
|
|
extern "C" long long __cdecl llabs(long long const number)
|
|
{
|
|
return number >= 0 ? number : -number;
|
|
}
|