tsan: handle memory read/write in syscalls
[blocksruntime.git] / lib / negti2.c
blobf7e4ad3b94af49d708f0598c356d9d449d03cdbb
1 /* ===-- negti2.c - Implement __negti2 -------------------------------------===
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 __negti2 for the compiler_rt library.
12 * ===----------------------------------------------------------------------===
15 #include "int_lib.h"
17 #if __x86_64
19 /* Returns: -a */
21 ti_int
22 __negti2(ti_int a)
24 /* Note: this routine is here for API compatibility; any sane compiler
25 * should expand it inline.
27 return -a;
30 #endif