xref: /llvm-project/libc/src/stdlib/labs.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
11fd32dcbSCheng Wang //===-- Implementation of labs --------------------------------------------===//
21fd32dcbSCheng Wang //
31fd32dcbSCheng Wang // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
41fd32dcbSCheng Wang // See https://llvm.org/LICENSE.txt for license information.
51fd32dcbSCheng Wang // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
61fd32dcbSCheng Wang //
71fd32dcbSCheng Wang //===----------------------------------------------------------------------===//
81fd32dcbSCheng Wang 
91fd32dcbSCheng Wang #include "src/stdlib/labs.h"
101fd32dcbSCheng Wang #include "src/__support/common.h"
11b937908cSSiva Chandra Reddy #include "src/__support/integer_operations.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
131fd32dcbSCheng Wang 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
151fd32dcbSCheng Wang 
161c92911eSMichael Jones LLVM_LIBC_FUNCTION(long, labs, (long n)) { return integer_abs(n); }
171fd32dcbSCheng Wang 
18*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
19