Stephen Canon | b6d4e2e | 2010-07-03 00:56:03 +0000 | [diff] [blame] | 1 | //===-- lib/negdf2.c - double-precision negation ------------------*- C -*-===// |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Howard Hinnant | 9ad441f | 2010-11-16 22:13:33 +0000 | [diff] [blame] | 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements double-precision soft-float negation. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
Stephen Canon | e508632 | 2010-07-01 15:52:42 +0000 | [diff] [blame] | 13 | |
| 14 | #define DOUBLE_PRECISION |
| 15 | #include "fp_lib.h" |
| 16 | |
Chandler Carruth | 0193b74 | 2012-06-22 21:09:15 +0000 | [diff] [blame] | 17 | ARM_EABI_FNALIAS(dneg, negdf2) |
Anton Korobeynikov | 37b97d1 | 2011-04-19 17:51:24 +0000 | [diff] [blame] | 18 | |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 19 | fp_t __negdf2(fp_t a) { |
Stephen Canon | e508632 | 2010-07-01 15:52:42 +0000 | [diff] [blame] | 20 | return fromRep(toRep(a) ^ signBit); |
| 21 | } |