negsf2.c revision 1c5f89b1dd741135a4007ab577723d422f421eec
1//===-- lib/negsf2.c - single-precision negation ------------------*- C -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file implements single-precision soft-float negation. 11// 12//===----------------------------------------------------------------------===// 13#include "abi.h" 14 15#define SINGLE_PRECISION 16#include "fp_lib.h" 17 18ARM_EABI_FNALIAS(fneg, negsf2); 19 20COMPILER_RT_ABI fp_t 21__negsf2(fp_t a) { 22 return fromRep(toRep(a) ^ signBit); 23} 24