1214152Sed/* ===-- negdi2.c - Implement __negdi2 -------------------------------------=== 2214152Sed * 3214152Sed * The LLVM Compiler Infrastructure 4214152Sed * 5222656Sed * This file is dual licensed under the MIT and the University of Illinois Open 6222656Sed * Source Licenses. See LICENSE.TXT for details. 7214152Sed * 8214152Sed * ===----------------------------------------------------------------------=== 9214152Sed * 10214152Sed * This file implements __negdi2 for the compiler_rt library. 11214152Sed * 12214152Sed * ===----------------------------------------------------------------------=== 13214152Sed */ 14214152Sed 15214152Sed#include "int_lib.h" 16214152Sed 17214152Sed/* Returns: -a */ 18214152Sed 19214152Seddi_int 20214152Sed__negdi2(di_int a) 21214152Sed{ 22214152Sed /* Note: this routine is here for API compatibility; any sane compiler 23214152Sed * should expand it inline. 24214152Sed */ 25214152Sed return -a; 26214152Sed} 27