blob: b47f3978b41e4e12869bc149654aca61b75a45ff [file] [log] [blame]
Stephen Canon79732952010-07-03 00:56:03 +00001//===-- lib/negdf2.c - double-precision negation ------------------*- C -*-===//
Stephen Canon74eaf1f2010-07-01 17:58:24 +00002//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant5b791f62010-11-16 22:13:33 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Stephen Canon74eaf1f2010-07-01 17:58:24 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file implements double-precision soft-float negation.
11//
12//===----------------------------------------------------------------------===//
Anton Korobeynikove63da932011-04-19 17:52:09 +000013#include "abi.h"
Stephen Canonb1fdde12010-07-01 15:52:42 +000014
15#define DOUBLE_PRECISION
16#include "fp_lib.h"
17
Anton Korobeynikov75e3c192011-04-19 17:51:24 +000018ARM_EABI_FNALIAS(dneg, negdf2);
19
Stephen Canon74eaf1f2010-07-01 17:58:24 +000020fp_t __negdf2(fp_t a) {
Stephen Canonb1fdde12010-07-01 15:52:42 +000021 return fromRep(toRep(a) ^ signBit);
22}