mirror of
https://github.com/reactos/reactos.git
synced 2025-06-30 01:01:20 +00:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
parent
f1b60c66f0
commit
04e0dc4a7a
568 changed files with 115483 additions and 0 deletions
24
sdk/lib/ucrt/stdlib/abs.cpp
Normal file
24
sdk/lib/ucrt/stdlib/abs.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
//
|
||||
// abs.cpp
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Defines abs() and _abs64(), which compute the absolute value of a number.
|
||||
//
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
#pragma function(abs, _abs64)
|
||||
|
||||
|
||||
|
||||
extern "C" int __cdecl abs(int const number)
|
||||
{
|
||||
return number >= 0 ? number : -number;
|
||||
}
|
||||
|
||||
extern "C" __int64 __cdecl _abs64(__int64 const number)
|
||||
{
|
||||
return number >= 0 ? number : -number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue