1*c179bcc1SAlex Brachet //===-- Implementation of imaxabs -----------------------------------------===// 2*c179bcc1SAlex Brachet // 3*c179bcc1SAlex Brachet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*c179bcc1SAlex Brachet // See https://llvm.org/LICENSE.txt for license information. 5*c179bcc1SAlex Brachet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*c179bcc1SAlex Brachet // 7*c179bcc1SAlex Brachet //===----------------------------------------------------------------------===// 8*c179bcc1SAlex Brachet 9*c179bcc1SAlex Brachet #include "src/inttypes/imaxabs.h" 10*c179bcc1SAlex Brachet #include "src/__support/common.h" 11*c179bcc1SAlex Brachet #include "src/__support/integer_operations.h" 12*c179bcc1SAlex Brachet 13*c179bcc1SAlex Brachet namespace __llvm_libc { 14*c179bcc1SAlex Brachet 15*c179bcc1SAlex Brachet LLVM_LIBC_FUNCTION(intmax_t, imaxabs, (intmax_t j)) { return integer_abs(j); } 16*c179bcc1SAlex Brachet 17*c179bcc1SAlex Brachet } // namespace __llvm_libc 18