negsf2.c revision 222656
1214152Sed//===-- lib/negsf2.c - single-precision negation ------------------*- C -*-===//
2214152Sed//
3214152Sed//                     The LLVM Compiler Infrastructure
4214152Sed//
5222656Sed// This file is dual licensed under the MIT and the University of Illinois Open
6222656Sed// Source Licenses. See LICENSE.TXT for details.
7214152Sed//
8214152Sed//===----------------------------------------------------------------------===//
9214152Sed//
10214152Sed// This file implements single-precision soft-float negation.
11214152Sed//
12214152Sed//===----------------------------------------------------------------------===//
13222656Sed#include "abi.h"
14214152Sed
15214152Sed#define SINGLE_PRECISION
16214152Sed#include "fp_lib.h"
17214152Sed
18222656SedARM_EABI_FNALIAS(fneg, negsf2);
19222656Sed
20222656SedCOMPILER_RT_ABI fp_t
21222656Sed__negsf2(fp_t a) {
22214152Sed    return fromRep(toRep(a) ^ signBit);
23214152Sed}
24