[ASan] Intercept CreateThread on Windows
[blocksruntime.git] / lib / negti2.c
blob774e80829454488d55d69f77fd31125b10c36700
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 #if __x86_64
17 #include "int_lib.h"
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