1156cd587Sjoerg /* ===-- negti2.c - Implement __negti2 -------------------------------------=== 2156cd587Sjoerg * 3156cd587Sjoerg * The LLVM Compiler Infrastructure 4156cd587Sjoerg * 5156cd587Sjoerg * This file is dual licensed under the MIT and the University of Illinois Open 6156cd587Sjoerg * Source Licenses. See LICENSE.TXT for details. 7156cd587Sjoerg * 8156cd587Sjoerg * ===----------------------------------------------------------------------=== 9156cd587Sjoerg * 10156cd587Sjoerg * This file implements __negti2 for the compiler_rt library. 11156cd587Sjoerg * 12156cd587Sjoerg * ===----------------------------------------------------------------------=== 13156cd587Sjoerg */ 14156cd587Sjoerg 15156cd587Sjoerg #include "int_lib.h" 16156cd587Sjoerg 17156cd587Sjoerg #ifdef CRT_HAS_128BIT 18156cd587Sjoerg 19156cd587Sjoerg /* Returns: -a */ 20156cd587Sjoerg 21*f7f78b33Sjoerg COMPILER_RT_ABI ti_int __negti2(ti_int a)22156cd587Sjoerg__negti2(ti_int a) 23156cd587Sjoerg { 24156cd587Sjoerg /* Note: this routine is here for API compatibility; any sane compiler 25156cd587Sjoerg * should expand it inline. 26156cd587Sjoerg */ 27156cd587Sjoerg return -a; 28156cd587Sjoerg } 29156cd587Sjoerg 30156cd587Sjoerg #endif /* CRT_HAS_128BIT */ 31