mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +00:00
20 lines
311 B
C++
20 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;
|
||
|
}
|