reactos/sdk/lib/ucrt/stdlib/llabs.cpp

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;
}