| Stephen Canon | b6d4e2e | 2010-07-03 00:56:03 +0000 | [diff] [blame] | 1 | //===-- lib/negsf2.c - single-precision negation ------------------*- C -*-===// |
| Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements single-precision soft-float negation. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| Stephen Canon | e508632 | 2010-07-01 15:52:42 +0000 | [diff] [blame] | 13 | |
| 14 | #define SINGLE_PRECISION |
| 15 | #include "fp_lib.h" |
| 16 | |
| 17 | fp_t __negsf2(fp_t a) { |
| 18 | return fromRep(toRep(a) ^ signBit); |
| 19 | } |