diff options
Diffstat (limited to 'lib/builtins/negdf2.c')
-rw-r--r-- | lib/builtins/negdf2.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/builtins/negdf2.c b/lib/builtins/negdf2.c new file mode 100644 index 000000000000..d634b421cb79 --- /dev/null +++ b/lib/builtins/negdf2.c @@ -0,0 +1,22 @@ +//===-- lib/negdf2.c - double-precision negation ------------------*- 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 double-precision soft-float negation. +// +//===----------------------------------------------------------------------===// + +#define DOUBLE_PRECISION +#include "fp_lib.h" + +ARM_EABI_FNALIAS(dneg, negdf2) + +COMPILER_RT_ABI fp_t +__negdf2(fp_t a) { + return fromRep(toRep(a) ^ signBit); +} |