xref: /reactos/sdk/lib/ucrt/stdlib/llabs.cpp (revision b09b5584)
1 //
2 // llabs.cpp
3 //
4 //      Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // Defines llabs(), which computes the absolute value of a number.
7 //
8 #include <stdlib.h>
9 
10 
11 
12 #pragma function(llabs)
13 
14 
15 
16 extern "C" long long __cdecl llabs(long long const number)
17 {
18 	return number >= 0 ? number : -number;
19 }
20