tsan: relax checking of errno spoiling in signal handlers
[blocksruntime.git] / lib / negdi2.c
blobb000dda3b83dac61c1b8f9bab5e8fd549ec2a7f6
1 /* ===-- negdi2.c - Implement __negdi2 -------------------------------------===
3 * The LLVM Compiler Infrastructure
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
8 * ===----------------------------------------------------------------------===
10 * This file implements __negdi2 for the compiler_rt library.
12 * ===----------------------------------------------------------------------===
15 #include "int_lib.h"
17 /* Returns: -a */
19 di_int
20 __negdi2(di_int a)
22 /* Note: this routine is here for API compatibility; any sane compiler
23 * should expand it inline.
25 return -a;