1*3cab2bb3Spatrick //===-- negti2.c - Implement __negti2 -------------------------------------===// 2*3cab2bb3Spatrick // 3*3cab2bb3Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*3cab2bb3Spatrick // See https://llvm.org/LICENSE.txt for license information. 5*3cab2bb3Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*3cab2bb3Spatrick // 7*3cab2bb3Spatrick //===----------------------------------------------------------------------===// 8*3cab2bb3Spatrick // 9*3cab2bb3Spatrick // This file implements __negti2 for the compiler_rt library. 10*3cab2bb3Spatrick // 11*3cab2bb3Spatrick //===----------------------------------------------------------------------===// 12*3cab2bb3Spatrick 13*3cab2bb3Spatrick #include "int_lib.h" 14*3cab2bb3Spatrick 15*3cab2bb3Spatrick #ifdef CRT_HAS_128BIT 16*3cab2bb3Spatrick 17*3cab2bb3Spatrick // Returns: -a 18*3cab2bb3Spatrick __negti2(ti_int a)19*3cab2bb3SpatrickCOMPILER_RT_ABI ti_int __negti2(ti_int a) { 20*3cab2bb3Spatrick // Note: this routine is here for API compatibility; any sane compiler 21*3cab2bb3Spatrick // should expand it inline. 22*3cab2bb3Spatrick return -a; 23*3cab2bb3Spatrick } 24*3cab2bb3Spatrick 25*3cab2bb3Spatrick #endif // CRT_HAS_128BIT 26