negsf2.c
716 Bytes
//===-- lib/negsf2.c - Single-precision subtraction ---------------*- C -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements single-precision soft-float subtraction with the
// IEEE-754 default rounding (to nearest, ties to even).
//
//===----------------------------------------------------------------------===//
#define SINGLE_PRECISION 1
#include "fp_lib.h"
fp_t __negsf2(fp_t a)
{
const unsigned int ai = toRep(a) ^ signBit;
return fromRep(ai);
}