From 9e314d11d7e839f0aaf35b4dce7a622c42945711 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Fri, 20 Jan 2012 06:16:37 +0000 Subject: Import SoftFloat from NetBSD. --- ltdf2.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ltdf2.c (limited to 'ltdf2.c') diff --git a/ltdf2.c b/ltdf2.c new file mode 100644 index 000000000000..9ab849f06e19 --- /dev/null +++ b/ltdf2.c @@ -0,0 +1,24 @@ +/* $NetBSD: ltdf2.c,v 1.1 2000/06/06 08:15:06 bjh21 Exp $ */ + +/* + * Written by Ben Harris, 2000. This file is in the Public Domain. + */ + +#include "softfloat-for-gcc.h" +#include "milieu.h" +#include "softfloat.h" + +#include +#if defined(LIBC_SCCS) && !defined(lint) +__RCSID("$NetBSD: ltdf2.c,v 1.1 2000/06/06 08:15:06 bjh21 Exp $"); +#endif /* LIBC_SCCS and not lint */ + +flag __ltdf2(float64, float64); + +flag +__ltdf2(float64 a, float64 b) +{ + + /* libgcc1.c says -(a < b) */ + return -float64_lt(a, b); +} -- cgit v1.3