negsf2.c revision 256281
118099Spst//===-- lib/negsf2.c - single-precision negation ------------------*- C -*-===//
218099Spst//
318099Spst//                     The LLVM Compiler Infrastructure
418099Spst//
518099Spst// This file is dual licensed under the MIT and the University of Illinois Open
618099Spst// Source Licenses. See LICENSE.TXT for details.
718099Spst//
818099Spst//===----------------------------------------------------------------------===//
918099Spst//
1018099Spst// This file implements single-precision soft-float negation.
1118099Spst//
1218099Spst//===----------------------------------------------------------------------===//
1318099Spst
1418099Spst#define SINGLE_PRECISION
1518099Spst#include "fp_lib.h"
1618099Spst
1718099SpstARM_EABI_FNALIAS(fneg, negsf2)
1818099Spst
1918099SpstCOMPILER_RT_ABI fp_t
2018099Spst__negsf2(fp_t a) {
2118099Spst    return fromRep(toRep(a) ^ signBit);
2218099Spst}
2318099Spst